I am trying to build a function that will return a value based on user
input on a page loaded into a div using Ajax.Updater.
So for example:
function userChooser() {
new Ajax.Updater('divID', 'userChooser.asp');
}
alert(userChooser());
Inside userChooser.asp I would display a list that the user can click
on. When they click on an item in the list, I want the function to
return that item. What i don't know is if I can make the function wait
to return until the user clicks on an item (like an alert or confirm
dialog would do). Also if there is a way to make it wait, I don't know
how to assign a value back to that function.
Is this possible?
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.