Peter Michaux
2006-May-11 01:50 UTC
link_to_remote() can do something like Yahoo! UI "argument"?
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
Possibly Parallel Threads
- Form of \item{arg_i}{Description of arg_i.} in \arguments
- Rich Text Editor and link_to_remote
- help getting plugin to work
- link_to_remote, how to send "data" to another <div> when something system detects something wrong???
- RE: Yahoo!-like Event object emulation/abstractioninPrototype?