-
I have multiple dijit dialogs on a XPage, most of which pop when buttons are clicked. One is an “are you sure?” type dialog that pops on save. The dialogs that pop on buttons work fine, apparently “stopping” execution until the user interacts with them, which is the desired behaviour. If a save is being done the nag dialog pops just like it should, but it’s not “modal”, ie, it doesn’t halt everything until the user answers. The browser keeps running in the background, the save takes place, and this dialog is left “hanging” there. (grin)
-
I’m sure I’m just missing some parameter, and the most likely scenario is that the dialogs that pop on buttons are actually not “modal” either, but because the browser isn’t doing anything, like trying to save and exit, that operation isn’t noticable. I surmise this because all the dialogs use exactly the same code on a function in a JS library. That’s short:
function showMe(dlgName, dlgTitle) {
var dlg=dijit.byId(dlgName);
if(dlg) dlg.show();
else {
dialog_create(dlgName, dlgTitle);
dlg=dijit.byId(dlgName);
if(dlg) dlg.show();
else {
alert(dlgName+" explicit create failed");
return false;
}
}
return true;
}
- I’ve search here but not found, though that could easily be the parameters. I’ll go poke around the 'net some and see what I can find.
Meantime if someone knows the answer I’d be much obliged…