Just proxy the function with a closure :

{ onComplete: function(ajaxObj) { 
showInfo(ajaxObj,anotherParam1,anotherParam2) } }

HTH

Matt

Daniel Elmore wrote:

 > When you assign a function to an Ajax event:
 >
 > { ... onComplete: showInfo }
 >
 > I see that the Ajax object is passed into the showInfo function, but how
 > would I pass in additional variables I'll need, or can I custom define
 > what
 > I'll need in the Ajax options hash and access it that way?
 >
 > Thank you
 > Daniel
 >
 >
 > _______________________________________________
 > Rails-spinoffs mailing list
 > Rails-spinoffs@lists.rubyonrails.org
 > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
 >


_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to