This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

$request->isXmlHttpRequest() incorrect behaviour

This is for discussion, mainly on 1.x but there's some 2.x topics here too.

$request->isXmlHttpRequest() incorrect behaviour

by dziamid » Tue Jan 11, 2011 4:34 pm

$request->isXmlHttpRequest() works fine, unless there's a redirect somewhere during the execution. If you call this function after a redirect - it returns false. Is this a bug? What can I do about it?
dziamid
Member
 
Posts: 87
Joined: Tue Jun 22, 2010 3:43 pm

Re: $request->isXmlHttpRequest() incorrect behaviour

by mrugendrabhure » Fri Mar 14, 2014 10:21 am

Have you found a solution to this issue ?

We are facing something similar. Ours however a strange phenomenon wherein after running an action which employees ajax requests, if you click any standard link, it results in wrong isXMLHTTPRequest setting, we get all our layout turned off and sfGuardPlugin rendering blank responses.
mrugendrabhure
Member
 
Posts: 38
Joined: Fri Dec 04, 2009 11:15 am
Location: INDIA