Re: [Rails-spinoffs] Easy Ajax.Request Question

2006-08-08 Thread Matt Spendlove
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 sho

[Rails-spinoffs] Easy Ajax.Request Question

2006-08-07 Thread Daniel Elmore
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 Dani