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.
on 2006-02-18 06:57
on 2006-02-18 09:16
Use link_to_remote.. it has a :before, :complete, and :loading callback hook that you can use to perform AJAX actions. _Kevin
on 2006-02-19 18:06
my mistake, I was actually using link_to_remote but I had never used the :complete option. This does the trick. thanks.