Welcome Guest, Not a member yet? Register   Sign In
Non-Javascript Friendly Site
#11

[eluser]InsiteFX[/eluser]
Narkboy,

Greg has added this into CI 2.0 Input Class

is_ajax_request()
Code:
$this->input->is_ajax_request()
Which will return TRUE or FALSE if it is an AJAX request.

InsiteFX
#12

[eluser]helmutbjorg[/eluser]
Is anyone else having intermittent issues with this new is_ajax_request() function. Every now and again an ajax request is not picked up with awful results. If this function it true I return a cut down version. If not then the full view is displayed. Some of the ajax requests (only at random infrequent times) are returning the full version.
#13

[eluser]InsiteFX[/eluser]
Probally because the session library is changing the session_id you would need to extend the session library and if it is an ajax call do not allow it to update the session.

InsiteFX
#14

[eluser]helmutbjorg[/eluser]
Ahhh... nice one. Your a legend... thanks.
#15

[eluser]helmutbjorg[/eluser]
Nope... it still happens. The user is not being logged out, which is what the problem you describe above would cause. My user stays logged in however gets the detailed view instead of the ajax view. Hmmm. Might have to do some more digging.




Theme © iAndrew 2016 - Forum software by © MyBB