Yes, I understand what you've said. I was making it more convoluted
than need be.
wrapAjaxUpdater('showsomething.php', 'somediv', handleCompletion); -
works correctly
wrapAjaxUpdater('showsomething.php', 'somediv', handleCompletion()); -
does not work because I'm calling the function, not passing a
reference to it.
In another situation, I need to pass parameters to the callback. So
would I do it this way?
var temp = handleCompletion(5)
wrapAjaxUpdater('showsomething.php?id=5', 'somediv', temp);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---