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'm not sure if the plugin changed this or there was a wrong documentation somewhere, but the
callback
issubmit
nowadays and it takes 4 arguments instead of 3:event, value, message, formVals
:Adapting @Oytun Tez excelent answer, I've made this example: