Fair enough. But it is good practice. Better to be safe than
sorry... ;-)
On Apr 7, 6:39 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Diego A. schrieb:
>
>
>
> > Hi Klaus,
>
> > See
> >http://www.nabble.com/Unique-parameter-in-Ajax-tf3440508s15494.html#a...
>
> > It's just my preference. I like t
Diego A. schrieb:
Hi Klaus,
See
http://www.nabble.com/Unique-parameter-in-Ajax-tf3440508s15494.html#a9883915
It's just my preference. I like to use my own header in case the jQuery
implementatin changes.
I see. I'm pretty sure that this wan't change though. It works with
Rails out-of-the-b
Hi Klaus,
See
http://www.nabble.com/Unique-parameter-in-Ajax-tf3440508s15494.html#a9883915
It's just my preference. I like to use my own header in case the jQuery
implementatin changes.
Klaus Hartl wrote:
>
>
> Diego A. schrieb:
>> I ended up changing my server application to look for the h
Exactly. That is exactly why I needed that unique parameter.
And to answer the question of 'how' I do it, here's the code (ASP):
DIM AJAX_REQUEST = False
' Look for "x-Requested-With" header sent by jQuery
If InStr(1, Request.ServerVariables("ALL_HTTP"),
"HTTP_X_REQUESTED_WITH:XMLHttpRequest")>0
On 4/6/07, Ariel Jakobovits <[EMAIL PROTECTED]> wrote:
Just curious, what changes about the server's behavior when the x-Method
is specified as Ajax?
By itself, it doesn't do anything. But in your server-side code, you can
look for this (or more accurately, look for an HTTP header named
"X-Re
Diego A. schrieb:
I ended up changing my server application to look for the header "x-Method =
Ajax" and it works just fine.
Oh well, jQuery already adds a custom header to each Ajax request:
"X-Requested-With: XmlHttpRequest"
-- Klaus
Just curious, what changes about the server's behavior when the x-Method is
specified as Ajax?
- Original Message
From: Diego A. <[EMAIL PROTECTED]>
To: jquery-en@googlegroups.com
Sent: Friday, April 6, 2007 5:48:20 PM
Subject: [jQuery] Re: Unique parameter in Ajax
Tha
Thanks for the quick response guys. This message had been pending for a few
days and I've since managed to work around the problem, but I think this
might be a bug.
By doing this...
$.ajaxSetup({ global:true, data:{'ajax':'y'} });
... jQuery should:
1. add 'ajax = y' to the data submitted when I
I did! Thanks, Klaus. :-)
I think you meant:
http://groups.google.com/group/jquery-en/browse_thread/thread/68592545316c1e4a/3dcffd978d8d77d5#3dcffd978d8d77d5
;-)
Mike Alsup schrieb:
Oops, wrong thread, sorry. Klaus had a nice post on this one:
http://groups.google.com/group/jquery-en/browse_thread/thread/5ec973dd2ca45738/3794cc7ced0f3ee0#3794cc7ced0f3ee0
I think you meant:
http://groups.google.com/group/jquery-en/browse_thread/thread/68592545316c1e4
Oops, wrong thread, sorry. Klaus had a nice post on this one:
http://groups.google.com/group/jquery-en/browse_thread/thread/5ec973dd2ca45738/3794cc7ced0f3ee0#3794cc7ced0f3ee0
On 4/6/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
Ariel and Jörn posted some good ideas on this thread:
http://groups.
Ariel and Jörn posted some good ideas on this thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/5ec973dd2ca45738/3794cc7ced0f3ee0#3794cc7ced0f3ee0
I'd like to add a unique parameter to every ajax call jquery makes.
I need this to happen on get and post commands (ie.: form s
12 matches
Mail list logo