Re: [nyphp-talk] detecting Ajax calls

2007-02-26 Thread Kenneth Downs
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

Re: [nyphp-talk] detecting Ajax calls

2007-02-26 Thread Rob Marscher
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

[nyphp-talk] detecting Ajax calls

2007-02-26 Thread David Mintz
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] =>

[nyphp-talk] detecting Ajax calls

2007-02-26 Thread David Mintz
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