Well the very simplest thing I can think of is this:
onSuccess: function(transport){
functionOne(transport);
functionTwo(transport);
}
Will that work for you?
Walter
On Nov 29, 2010, at 12:04 PM, Luke wrote:
Hi
the topic says it all. Can you somehow call multiple functions for a
callback of Ajax.Request? Like
new Ajax.Request(url, {
onSuccess: [function(){}, function(){}]
});
I know <em>that</em> doesn't work. But is there maybe another way?
I've seen there are Ajax.Responders (
http://www.prototypejs.org/api/ajax/responders
) but I couldn't figure out how that works.
Thank you
Lukas
--
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 prototype-scriptaculous@googlegroups.com
.
To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en
.
--
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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.