Welcome Guest, Not a member yet? Register   Sign In
How to detect a Ajax request?
#2

[eluser]Doosje[/eluser]
Code:
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']=="XMLHttpRequest") {
        }else{
            // header("Location: " . base_url());
        }


this is how i do it.


Messages In This Thread
How to detect a Ajax request? - by El Forum - 08-26-2007, 10:19 AM
How to detect a Ajax request? - by El Forum - 08-26-2007, 10:56 AM
How to detect a Ajax request? - by El Forum - 08-26-2007, 12:55 PM
How to detect a Ajax request? - by El Forum - 08-26-2007, 01:15 PM
How to detect a Ajax request? - by El Forum - 08-26-2007, 03:33 PM
How to detect a Ajax request? - by El Forum - 08-26-2007, 03:42 PM
How to detect a Ajax request? - by El Forum - 08-26-2007, 03:50 PM
How to detect a Ajax request? - by El Forum - 08-26-2007, 03:52 PM
How to detect a Ajax request? - by El Forum - 08-27-2007, 06:09 AM
How to detect a Ajax request? - by El Forum - 08-27-2007, 07:43 AM
How to detect a Ajax request? - by El Forum - 01-09-2009, 10:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB