Forum: Ruby on Rails Can I send a redirect_to() call to a periodically_call_remot

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Stuart Hungerford (Guest)
on 2006-05-03 20:57
(Received via mailing list)

I'm using Rails 1.1 and the periodically_call_remote() helper to
query the server for the progress of a long running action.

I'm using the excellent new RJS partials to send a page.replace_html()
to update the status information on the page--which works very

When the action completes I'm also trying to send a redirect_to()
by the same approach--which doesn't seem to work in that the browser
window and URL bar are not updated.

Is there something special about the context of the
periodically_call_remote() function that means I need to force
browser redirects in another way?

Any advice much appreciated,

Brian Ã?gren (Guest)
on 2006-05-03 20:57
(Received via mailing list)
i fairly new at rails (haven't even tried out RJS yet) .. but you'll
need to
send the equivalent of

Steve R. (Guest)
on 2006-05-03 20:58
(Received via mailing list)
If you use


the javascript sent back to the browser is something like

location.href = 'someplace/else';

This should handle your redirect.
View this message in context:
Sent from the RubyOnRails Users forum at
This topic is locked and can not be replied to.