Hi,
is there any way to (automatically?) call a javascript function
whenever something has happened in the view? Or at least when the view
has changed.
I.e. I have a function that vertically resizes and positions elements
on a page after checking the content, and I''d like it to update those
every time the content has changed.
With <body onLoad="setY()">, it only works for the first view,
"/" or
"/frontpage/", but not the rest.
The html, head (and script), body tag, etc is located in a partial,
_a.rhtml, that is in views/layouts and is used across the different
views, like frontpage.rhtml, news.rhtml and so on.
Thanks,
Bjørn
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
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
-~----------~----~----~----~------~----~------~--~---