I'm using jQuery Impromptu as a pop window. The raw code is as follow:
function f1(pa1, pa2){
$.prompt("need to delete?",{
callback: callbackfunc,
button: {OK: true, Cancel: false}
});
}
function callbackfunc(v,m,f){
if(v){
// want to process the pa1 and pa2.
}
}
How to process pa1 and pa2 inside the callback?
I solve my problem like this:
It's OK if there is less parameters to process. however, if the callback function is too complex, and there are much parameters, this method is a not good.
I hope somebody could give me a better suggestion.