[jQuery] don't get it: how to pass a variable to a callback function
hi,
i got a silly little question:
ho do i pass a variable from a function to a callback? see this
example for better understanding:
var options = {
success: showResponse,
url: 'inc/application.adv.func.php'
};
function showResponse(responseText, statusText) {
jQuery('div#adv_content').load('inc/de.application.adv.inc.php?
page='+pageNumber);
}
$('#step1').click(function(){
var pageNumber = '0';
$('#myform').ajaxSubmit(options);
return false;
});
can you help me?