Hi,

I am using Rails' link_to_remote() and I want to do the same thing
Yahoo! UI's connection manager "argument" can do. From the Yahoo! UI
docs:

"argument: an object, string, number, or array containing data that
your success and failure functions might need in order to successfully
process the server response."

So, you use argument when you make the ajax request. It makes it
possible to send the success and failure functions information about
the browser state when the call was made. Yahoo! UI user code looks
like

var callback =
{
 success: function(o) {/*success handler code*/},
 failure: function(o) {/*failure handler code*/},
 argument: [argument1, argument2, argument3]
}

The example comes from
http://developer.yahoo.com/yui/connection/#async

Can this be done with Rails link_to_remote()? If not is there a workaround?

Thanks,
Peter
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to