[jQuery] Re: Disable globals for jQuery.get()?

2008-10-07 Thread Micky Hulse
Just as an update, I ended-up using $.ajax() // Append hidden field with unique token to form: $.ajax({url: token, global: false, cache: false, success: function(txt) { $emailStory.append(''); }}); Works perfectly. Thanks to all who helped!!!

[jQuery] Re: Disable globals for jQuery.get()?

2008-10-06 Thread Mike Alsup
> But it triggers ajaxStart/ajaxStop... I have tried: > > $.ajax({ >         url: token, >         global: false > > }); Can you post a demo that shows this not working? global: false should prevent the global ajax events from triggering.

[jQuery] Re: Disable globals for jQuery.get()?

2008-10-06 Thread Micky Hulse
Hi Mike, many many thanks for your quick reply. I really appreciate you (and all of you) taking the time to help me out. :) > what you probably want instead is this: > $.ajaxSettings.url = token; > $.ajaxSettings.global = false; Ahhh, thanks! I was did not see ajaxSettings in the docs. :( I thi

[jQuery] Re: Disable globals for jQuery.get()?

2008-10-06 Thread Mike Alsup
> Demo 1: > test/> > > Demo 2: > test/getOff.php> > I think you've just misunderstood how to set the default ajax options. Based on this comment: /* Setup

[jQuery] Re: Disable globals for jQuery.get()?

2008-10-06 Thread Micky Hulse
Hello, Here are a few test pages... Sorry, I have not had time to try the solutions offered here yet. Demo 1: Demo 2: Sorry in advance

[jQuery] Re: Disable globals for jQuery.get()?

2008-10-06 Thread Micky Hulse
Thanks for the help all! I am going to try your suggestions, and also put-together a simple test page in order to show/test the specific code... I am wondering if maybe some other jQuery plugin/script is causing problems with this. I will be back shortly with demo page. Thanks a billion!!! Mi

[jQuery] Re: Disable globals for jQuery.get()?

2008-10-06 Thread Adrian Lynch
I take it you have defined your own ajaxStart/Stop? If so, can you maybe remove and then recreate them either side of the .get call? Adrian On Oct 6, 7:50 am, Micky Hulse <[EMAIL PROTECTED]> wrote: > Hi, > > I have this bit of code that runs on page load: > > $.get(token, function(txt) { >    

[jQuery] Re: Disable globals for jQuery.get()?

2008-10-06 Thread BB
All AJAX shortcuts, such as: .get() .post() .getScript() .getJSON() all uses the .ajax() function. But the most settings of these functions are allready defined. Look at the jQuery code: return jQuery.ajax({ type: "GET", url: url, data: data, success: callback, dataType: type }); so if