I''m currently using a link_to function to generate an Ajax call. I''d like to be able to introduce other operations that occur upon click but I''m not aware of a way to add to link_to''s funtionality. I have a div which is hidden and would like to set it to be visible before (or after) the Ajax call. -- Posted via http://www.ruby-forum.com/.
Kevin Olbrich
2006-Feb-18 07:15 UTC
[Rails] Extending the onclick properties with link_to ?
Use link_to_remote.. it has a :before, :complete, and :loading callback hook that you can use to perform AJAX actions. _Kevin On Saturday, February 18, 2006, at 5:57 AM, Todd S. wrote:>I''m currently using a link_to function to generate an Ajax call. I''d >like to be able to introduce other operations that occur upon click but >I''m not aware of a way to add to link_to''s funtionality. > >I have a div which is hidden and would like to set it to be visible >before (or after) the Ajax call. > > >-- >Posted via http://www.ruby-forum.com/. >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails-- Posted with http://DevLists.com. Sign up and save your time!