hello, is it possible to add javascript actions inside a link_to_remote ? What i want to do is add an onClick="body.className=fancy" to the <a> tag .. thanks adam
On Aug 23, 2005, at 10:58 PM, Adam Denenberg wrote:> hello, > > is it possible to add javascript actions inside a link_to_remote ? > > What i want to do is add an onClick="body.className=fancy" to the > <a> tag ..RoR book p389 says you can have a JavaScript callback that is run when Ajax action is posted. It is parameter :loading. So you could write. :loading => "body.className=''fancy''" (note the quotes around ''fancy'' !!!) izidor