[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Nic Hubbard
I am interested in this as well. How could I send a string to the success GotNewData function? On Feb 26, 9:50 am, P Burrows pburr...@gmail.com wrote: Is anyone aware of a way to pass some additional context information to the success function of an ajax request? For instance, here is my

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Eric Garside
$.ajax({ type: GET, dataType: json, url: tUrl, success: function(data){ GotNewData(data, 'custom string'); }, error: GetDataError, complete: AjaxRequestComplete }); On Apr 15, 4:53 pm, Nic Hubbard nnhubb...@gmail.com wrote: I am interested in

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Nic Hubbard
Perfect! On Apr 15, 1:57 pm, Eric Garside gars...@gmail.com wrote: $.ajax({         type: GET,         dataType: json,         url: tUrl,         success: function(data){ GotNewData(data, 'custom string'); },         error: GetDataError,         complete: AjaxRequestComplete     }); On

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-02-26 Thread P Burrows
Nevermind... I can do it with lambdas. -- Patrick Burrows http://www.CleverHumans.com On Thu, Feb 26, 2009 at 11:50 AM, P Burrows pburr...@gmail.com wrote: Is anyone aware of a way to pass some additional context information to the success function of an ajax request? For instance, here is