Is there an rjs helper for zooming or scrolling to a DOM object, e.g.
I’ve tried using named anchors in combination with link_to_function, but
unless I’m doing something wrong, the onclick seems to override the
default browser behavior of skipping to a DOM element. For example;
<%= link_to “Nav”, “#header” %>
But this doesn’t;
<%= link_to_function(“Nav”, :href => “#header”) do |page|
It doesn’t seem to matter which rjs helpers I use, or even if I don’t
use any at all, the onclick seems to kill the skip to the named anchor.
So I was hoping I could just call an additional rjs helper to avoid the