[jQuery] [form][ajaxSubmit] How to send a parameter in error callback ?
Hi,
I would like to send a parameter in the error callback :
var optionsPrcPic = {
beforeSubmit: showRequestPic, // pre-submit callback
success: showResponsePic, // post-submit callback
dataType: 'json',
url: "<?php echo $this->baseUrl;
?>/members/profile/add-photo/pic/"+pic,
error: errorPic, //error callback
timeout: 600000
};
function errorPic(xhr, status, ex) {
[...]
}
I want to give to the error callback the 'pic' variable to know which pic
caused error.
Anyone has an idea ?
Thanks !
--
View this message in context: http://www.nabble.com/-form--ajaxSubmit--How-to-send-a-parameter-in-error-callback---tp18233801s27240p18233801.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.