Hi, CP
    Thank you very much.  Why can I use any argnames instead of
"transport"?    ex.

new Ajax.Request('/some_url',
  {
    method:'get',
    onSuccess: function(__ANYARGS__){
      var response = __ANYARGS__.responseText || "no response text";
      alert("Success! \n\n" + response);
    },
    onFailure: function(){ alert('Something went wrong...') }
  });


where is __ANYARGS__ pass from ?

On May 17, 11:15 pm, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
> Before 1.6, it was the XMLHttpRequest object.  Since 1.6, it's a
> Ajax.Response object.
>
> Check the docs on A.R callbacks (that didn't update to Ajax.Response,
> though, and still state it's a XHR object):
>
>    http://prototypejs.org/api/ajax/options
>
> --
> Christophe Porteneuve aka TDD
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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