When I need to use extra data in events callback, I use javascript
closures.

So, in cases like your, I do the following ajax call:
    var params = {par1:val1, par2: val2};
    $.ajax(  {url: myurl,
                 data: params,
                 success: getAjaxSuccess(params)
     } );

where getAjaxSuccess is a function that use closure on the real
callback function (_ajaxSuccess):
  function getAjaxSuccess (obj) {
    return (function() {
      _ajaxSuccess(arguments[0], arguments[1], obj);
    });
  }

 function _ajaxSuccess(data, textStatus, myParams) {
    //handle data...
 }

I don't know if there's a simpler method or properties to directly
access ajax call parameters.
I hope this will help you.

On 29 Gen, 14:13, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> How to retrieve in sucess call back function a paremeter sent in the
> request?

Reply via email to