[jQuery] Re: how to get php to detect if it's an ajax call or a normal full page call

2008-01-29 Thread Alexandre Plennevaux
Hi Erik, then i guess if($_SERVER[‘HTTP_X_REQUESTED_WITH’] == ‘XMLHttpRequest’) should get me going ... thanks a lot, Alex -- Original Message -- To: Jquery-en (jquery-en@googlegroups.com) From: Erik Beeson ([EMAIL PROTECTED]) Subject: [jQuery] Re: how to get php to detect

[jQuery] Re: how to get php to detect if it's an ajax call or a normal full page call

2008-01-29 Thread Erik Beeson
The request header X-Requested-With is set to XMLHttpRequest for all AJAX calls from jQuery. Hope it helps. --Erik On 1/29/08, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Hello, so that my php script can serve both ajax calls and full page call if javascript is not available on the

[jQuery] Re: how to get php to detect if it's an ajax call or a normal full page call

2008-01-29 Thread muccy
Use POST? On Jan 29, 10:42 am, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Hello, so that my php script can serve both ajax calls and full page call if javascript is not available on the client platform, i usually append a js=1 to all links. So it's a child play to test for