Welcome Guest, Not a member yet? Register   Sign In
is that possible to know if a function call in controller comes from client's AJAX request
#6

[eluser]TheFuzzy0ne[/eluser]
Code:
if ($this->input->server('HTTP_X_REQUESTED_WITH'))
{
    # It's an ajax request
}
else
{
    # It's not...
}


Messages In This Thread
is that possible to know if a function call in controller comes from client's AJAX request - by El Forum - 03-18-2009, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB