Welcome Guest, Not a member yet? Register   Sign In
CI workin with prototype.
#6

[eluser]Pascal Kriete[/eluser]
The response text is whatever the url on the other side spits out. So in this case it will be exactly what you get when you visit http://localhost/ajax/index.php/pages/id/3/edit/3.

Run a check in your backend and only send out what you need for the request:
Code:
if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])
     AND $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')
{
    echo 'ajax request';
    exit;
}


Messages In This Thread
CI workin with prototype. - by El Forum - 10-30-2008, 01:08 PM
CI workin with prototype. - by El Forum - 10-30-2008, 02:07 PM
CI workin with prototype. - by El Forum - 10-30-2008, 02:20 PM
CI workin with prototype. - by El Forum - 10-30-2008, 02:29 PM
CI workin with prototype. - by El Forum - 10-30-2008, 02:31 PM
CI workin with prototype. - by El Forum - 10-30-2008, 02:48 PM
CI workin with prototype. - by El Forum - 10-30-2008, 03:25 PM
CI workin with prototype. - by El Forum - 10-30-2008, 04:18 PM
CI workin with prototype. - by El Forum - 10-31-2008, 05:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB