[Proto-Scripty] RE: returning a value from a function calling a page with Ajax

2010-06-03 Thread Scott
In case this replay didn't end up in the appropriate thread: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/ db829a1d3ca58d79 REPLY: So here is my simple test using your method: I had to change the 'onSuccess' method in the updater to 'onComplete' it wasn'

[Proto-Scripty] Re: returning a value from a function calling a page with Ajax

2010-03-29 Thread T.J. Crowder
Hi, You can't make it wait, no. The way to do this is to have your `userChooser` function accept a callback function reference that the user choosing code will call when the user makes a choice. The `userChooser` function would then return immediately, but later the event of the user making a choi