2008/5/17 wucho <[EMAIL PROTECTED]>:
>
> 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 ?
>

You can call it whatever you want. I use hungarian notation for my
variables, so mine are o_Trans, o_JSON, etc.

The param is supplied when the underlying ajax class calls the onXXXX method.


-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

--~--~---------~--~----~------------~-------~--~----~
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