I would like to replace the native javascript alert() with my own, so that I would be able to control the theme and have it more JQueryUI look and feel. I\'ve tried numerous alt
In the mean time i also recently created a new function to allow confirm boxes with jqueryui dialog.
It is extremely easy to use
dlgConfirm('Are you sure you want to cancel this change-email request?
',
'Cancel Email Change', 'Continue', function(dlg){
//do ajax or something
return false; //do not close dialog until ajax is complete
}
dlgConfirm('Are you sure you want to submit this form', function(dlg){
$('form', dlg).submit();
return true;
});
Here is the source code (public domain):