[jQuery] Re: Ajax - Access data arguments in callback

2009-09-18 Thread Peter Edwards
Hi there, The only way I could find to do this with the $.get function was to parse out the query string - the success callback should get a copy of the options object which was used to set up the ajax request, but the data parameter is NULL in this object for GET requests (it is populated b

[jQuery] Re: Ajax - Access data arguments in callback

2009-09-18 Thread Flamer
Thanks for your reply. Does this not gives problems when I have an AJAX request with a timeout after say 2 seconds, but in the meantime there's another request using the same variable? Or is the sentData only accessible in the click( function(){ } ) scope? There is no other way of getting th

[jQuery] Re: Ajax - Access data arguments in callback

2009-09-17 Thread Nick Fitzsimons
2009/9/17 Flamer : > > Hello, > > Is it possible to access the data arguments that are sent with the > ajax function? > > Example: > $('#mycheckbox').click( function() { >        $.get( '/ajax.php', { nr: this.id }, function( data, textStatus ) { >                // Here I want to access the argum