Thanks Matt and Eric, it'sa working.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
Anderson
Sent: Tuesday, August 08, 2006 7:43 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] Re: Easy Ajax.Request Question

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?

The options hash could be used to piggy-back your own options although 
the closure method described by Matt seems like a less fragile method.

Eric

_______________________________________________
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