Hello.
I'm using animations on my website, and i want to start an Ajax
request after a animation has finished. So i want to use Function.defer
(...) on the Ajax.Updater function. The problem is that the
Ajax.Updater must be initiated using the "new" keyword, but then
Ajax.Updater isn't working.
I tried it like this:
new Ajax.Updater.defer(5,'main_body', '?topic='+topic, { evalScripts:
true });
I don't want to create a new function for using the delay:
var submit_ajax = function(topic) {
new Ajax.Updater('main_body', '?topic='+topic, { evalScripts:
true });
}
submit_ajax.delay(0.7,topic);
How is it possible to run functions that require "new" after a delay.
Thanks.
--
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.