RJS redirect_to / Effect.scrollTo

Hi there,

Is this even possible to do something like this in an RJS template?

page.redirect_to url_for(:action => ‘index’, :controller => ‘posts’)
page << “new Effect.ScrollTo
(‘scroll_to_specified_id’);”

The redirect_to works, but the ScrollTo doesn’t get executed.

Any ideas or workarounds?

Thanks,
Dave