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
#3

[eluser]mihailt[/eluser]
Code:
function isAjax() {
    return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest';
}


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, 02:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB