Stuart Hungerford
2006-May-01 07:12 UTC
Can I send a redirect_to() call to a periodically_call_remote() refresh?
Hi, 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 well. 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, Stu
PJ Hyett
2006-May-13 03:58 UTC
Re: Can I send a redirect_to() call to a periodically_call_remote() refresh?
There is a specific redirect_to for RJS templates, don''t remember the method call off the top of my head, though. -PJ On 5/1/06, Stuart Hungerford <stuart.hungerford-FCV4sgi5zeUQrrorzV6ljw@public.gmane.org> wrote:> Hi, > > 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 > well. > > 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, > > Stu > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Maybe Matching Threads
- Can I send a redirect_to() call to a periodically_call_remote() function?...
- Initial load time when periodically_call_remote
- Q: periodically_call_remote ( how to make it execute just once? )
- Pass parameters in periodically_call_remote?
- Newbie question about periodically_call_remote