deepreel, There must be something you're not telling us. Please make a page available publicly if possible. Strip it down to the bare bones - just enough to exhibit the problem you're seeing.
Mike On 8/15/07, deepreel <[EMAIL PROTECTED]> wrote: > > Come on folks please someone enlighten me as to why each time this > ajax is called the error, success functions are called (but the ajax > itself is not executed) n times. > > The code below is in a click event. If I click once I get 1 error > response, if I click a second time I will get 2 exec's of the error > response, click a 3rd and 3 exec's of the error response.... > > On Aug 14, 1:24 pm, deepreel <[EMAIL PROTECTED]> wrote: > > Correction the ajax isn't actually submitting multiple times but the > > function in the error function (when I test an error use case) get > > called incrementally more times with each event. > > > > On Aug 14, 10:40 am, deepreel <[EMAIL PROTECTED]> wrote: > > > > > Folks, I'm fiddling with jquery for the first time and have an issue: > > > > > var dnsData="smode=clearnode&hn="+hn+"&oldip="+ip+"&entry="+entry; > > > $.ajax({ > > > url: > > > "UpdateEntry", > > > type: "POST", > > > dataType: "html", > > > data: dnsData, > > > success: > > > function(msg){ > > > > > > > > alert("DNS Update Succeeded"); > > > > > }, > > > error: > > > function(msg){ > > > > > > alert("Critical Error in DNS Update. No changes applied. > > > Please manually check UDNS for \n"+hn+" set to 1.1.1.1"); > > > > > } > > > }); > > > > > The preceeding code technically works but if I get an error from the > > > UpdateEntry servlet it throws the alert, however the next time I > > > trigger the same ajax call (without reloading the page) I get 2 error > > > alerts, then 3 then 4 ever incrementing. JS debugging seems to > > > indicate that the > > > > > // Handle the global AJAX counter > > > 2058 if ( s.global && ! --jQuery.active ) > > > 2059 jQuery.event.trigger( "ajaxStop" ); > > > > > jquery global counter is getting increased on each call so that it > > > essentially counts down with each error function call until the point > > > where ajaxStop is triggered. > > > > > I'm sure I'm missing something obvious. Any guidance would be > > > appreciated. Note I have not done any .ajaxSetup else where in the > > > page the above is the entirety of my .ajax call. > > > > > Cheers folks. > > > > > P.S. thanks for the great tool. > >