David Mintz wrote:
I am wondering what you guys are doing to detect whether your PHP
script is being called via AJAX or --- "regular?" (Do we have a
retronym for that in this brave new Web 2.0 world?).
FWIW, we're using a variant of the isAjax, passing different values to
tell the framework to
I am wondering what you guys are doing to detect whether your PHP
script is being called via AJAX or --- "regular."
I know Prototype sends a custom headers e.g.
[X-Prototype-Version] => 1.5.0 [X-Requested-With] => XMLHttpRequest
I've been checking for
$_SERVER['HTTP_X_REQUESTED_WITH'] == 'XML
I am wondering what you guys are doing to detect whether your PHP
script is being called via AJAX or --- "regular?" (Do we have a
retronym for that in this brave new Web 2.0 world?).
I know Prototype sends a custom headers, e.g.
[X-Prototype-Version] => 1.5.0
[X-Requested-With] =>
I am wondering what you guys are doing to detect whether your PHP script is
being called via AJAX or --- "regular."
I know Prototype sends a custom headers e.g.
[X-Prototype-Version] => 1.5.0 [X-Requested-With] => XMLHttpRequest
--
David Mintz
http://davidmintz.org/
En Nueva York el trĂ¡nsito de