Ruby on Rails Wednesday, April 28, 2010

I register ajax listeners in my application.js in the dom:loaded
function. In some of my views I also need to use the dom:loaded event
to do other javascript stuff. Since I already have my dom:loaded in
application.js, can I specify another dom:loaded in the script tag in
my view or is there a better way to do it?

I know this could be a prototype question, but since this is rails, I
thought someone might have tried this already.

Thanks

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment