Ok, I\'m doing a bunch of RIA/AJAX stuff and need to create a \"pretty\", custom confirm box which is a DIV (not the built-in javascript confirm). I\'m having trouble determ
The way how I did this:
confirmBox(text,
callback).callback(true),
"No" - callback(false).When you are calling the function use this syntax:
confirmBox("Are you sure", function(callback){
if (callback) {
// do something if user pressed yes
}
else {
// do something if user pressed no
}
});