search for: ajaxupdater

Displaying 3 results from an estimated 3 matches for "ajaxupdater".

2009 Jun 17
4
Serverside AjaxRequest or AjaxUpdater detections
...c. It looks like this: if request.xhr? then render :update do |page| page.redirect_to url_for_thingy end else redirect_to redirect_to url_for_thingy end This works perfectly, however, I have one annoyance. On the server side, I don''t know if the xhr request coming in is from an AjaxUpdater or AjaxRequest (using prototype here). It''s possible that the browser will update a DOM element or that it just expects some javascript code. When an AjaxUpdater is used, the element is updated and the javascript is executed (so the redirect is done), but it just doesn''t look so n...
2008 Apr 21
0
Stopping Ajax.PeriodicalUpdater based on response
...te the stop method when the div contains certain content. As I understand it, I cannot pass in an options.onComplete handler and onSuccess is executed before the response is completely interpreted by the browser. I tried using Ajax.Responders, but that didn''t seem to help. Do I need use AjaxUpdater and setTimeout instead? Thanks for your help, Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3Mboc...
2006 Apr 27
12
Execute controller function from RJS
Hi all, I wonder if it is somehow possible to execture or redirect to a controller function from RJS? Right now I do: def foo() render :partial => ''executeagain'' end _executeagain.rhtml <script> new Ajax.Updater(''elmntID'', ''/test/foo/'', {evalScripts:true}); </script> This will loop I know :) How can I achieve the same