[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 $_

[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
if it's an ajax call or a normal full page call Date: 29/1/2008 10:53:24 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,

[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 availab