Using Ajax 2.2, I need to pop up a small window, enter some text and return the text to the parent page. If I was working with a live data record this would be no problem, I'd simply save while in the dialog. Problem is the record hasn't been saved yet so I just want to return the value so I can save it there. What's the best way? Or maybe the simplest?