[jQuery] Ajax request -- passing additional paramters to success method
Is anyone aware of a way to pass some additional context information to the "success" function of an ajax request?<div>
</div><div>For instance, here is my code which works fine:</div><div>
</div><div><div>
$.ajax({</div><div> type: "GET",</div><div> dataType: "json",</div><div> url: tUrl,</div><div> success: GotNewData,</div><div> error: GetDataError,</div><div> complete: AjaxRequestComplete</div>
<div> });</div></div><div>
</div><div>
</div><div>To the "GotNewData" function, I would also like to pass some other information. The url would be nice, but some other context info would be fine too. A unique ID. Some random string. ...anything.</div>
<div>
</div><div>Any ideas?</div><div>
<div><br clear="all">--
Patrick Burrows
<a href="http://www.CleverHumans.com">http://www.CleverHumans.com</a>
</div></div>