Posted
on Dec 14, 2011
(permalink)
Hi,
I need radconfirm make working similar to default browser's confirm. browser's confirms returns user action either true or false, but in case of radconfirm need to add callback funtion and radconfirm is not waiting till users responded. with callback function, I was unable to do postback, if user gives positive response. here are my two scenarios with both confirms..
1) function remove() {
var result = confirm("Do you wish to remove?");
if(result) return true; else return false;
}
2) function remove1() {
radconfirm("Do you with to remove?", confirmCallBackFn, 330, 100, null, 'title');
return false;
}
function confirmCallBackFn(arg) {
if (arg) {
document.forms[0].submit(); // I don't want to make postback with this, as it causes refreshing whole page. I am calling remove/remove1 method on a control which is in update panel..
}
}
I want to use the radconfirm() instead of confirm(), but need the similar way of my first scenario which signals to update panel with user's response either true or false.
Kindly suggest me on this....
Regards,
Srinivas