Ben Johnson
2006-Aug-06 03:40 UTC
[Rails] periodically_call_remote forces asynchronous to true?
Whenever I use periodically_call_remote it outputs as the following: <script type="text/javascript"> //<![CDATA[ new PeriodicalExecuter(function() {new Ajax.Request(''some_url'', {asynchronous:true, evalScripts:true})}, 2) //]]> </script> If I understand correctly, setting asynchronous to true means that if one request takes longer than 2 seconds, the next request will continue anyways. I want them to happen in order. Therefore, I want to make asynchronous false. I tried passing :asynchronouse => false in the options and got no such luck. Any help is greatly appreciated. -- Posted via http://www.ruby-forum.com/.
Mark Reginald James
2006-Aug-07 04:34 UTC
[Rails] Re: periodically_call_remote forces asynchronous to true?
Ben Johnson wrote:> I tried passing :asynchronouse => false in the options and got no such > luck.Prototype synchronous requests don''t currently work, but will do so if you apply this small patch: http://dev.rubyonrails.org/ticket/4657 -- We develop, watch us RoR, in numbers too big to ignore.
Apparently Analagous Threads
- Is there a huge performance difference between using multiple periodically_call_remote functions or one?
- Question about periodically_call_remote
- Pass parameters in periodically_call_remote?
- Can I send a redirect_to() call to a periodically_call_remote() function?...
- Q: periodically_call_remote ( how to make it execute just once? )