search for: url_for_thingy

Displaying 1 result from an estimated 1 matches for "url_for_thingy".

2009 Jun 17
4
Serverside AjaxRequest or AjaxUpdater detections
Hi all, This question might be a long shot, but I''m going to ask it anyway. In my application, I''ve created a before_filter that does some magic. 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 DO...