Is it possible with the Ajax object to pass extra parameters that will
be accessible on the success callback?

Like a responseParameters parameter or something like that?:

new Ajax.Request(url,
  {
    method:'get',
    onSuccess: function(transport){

         /*
          * Here I have some variable or function instance to call...
          */
          functionName();
          alert(responseParameters.params[0]);

    },
        responseParameters = new Array('stuff1', functionName, 'etc...')
  });


On the Yahoo YUI these are called argument in the callback object...
wich works great but the YUI is too big for not much, that's why i
want to switch to Prototype:

7       var callback =
8       {
9         success: function(o) {/*success handler code*/},
10        failure: function(o) {/*failure handler code*/},
11        argument: [argument1, argument2, argument3]
12      }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to