Hello All,
I have been working on a modification of our Domino Web Access template (iNotes\Forms7.nsf) and have run into an issue. The code is working correctly for IE, but when I bring it up in Firefox, my dialog does not launch. (In fact, it doesn’t do anything at all. No errors!)
I have been looking at the redbook on the subject (redp4188) and the article on Manipulating data in Domino Web Access. They both say that DWA implements something similar to showModalDialog and that the code should work for both browsers.
If someone could point me in the right direction, I would appreciate it.
function showMailForwardDialog(){
//
// this function displays the Mail Forward dialog box.
//
var ID = new Object;
// The Mail Forward dialogbox is not a main page,
// you can see that we override the form using &Form=MailForward
// so that it uses the form specified instead of h_PageUI
var shref = lT(self) + '/iNotes/Proxy/?OpenDocument&Form=s_MailForward&l=en@{@If(s_Charset="";"";"&charset=" + s_Charset)}';
var lI = window.showModalDialog(shref, ID, "dialogWidth:620px;dialogHeight:200px;dialogTop:100px;dialogLeft:100px;help:no;status:no;center:no;");
}
Subject: Domino Web Access - showModalDialog
I have it working this way in my environment
if (window.showModelessDialog)
var lI = window.showModelessDialog(shref, ID, dialogSettings); // MS IE specifically for IE 7
else
var lI1 = window.showModalDialog(shref, ID, dialogSettings ); // Gecko
}
Subject: RE: Domino Web Access - showModalDialog
Hello Yazdi,
I tried your code and the same thing happens. I’m a little confused, because showModalDialog is what is not working on Gecko. Any help is greatly appreciated.
Thanks.
Subject: RE: Domino Web Access - showModalDialog
Try this line instead of one in yr code
var shref = lT(self) + ‘/iNotes/Proxy/?OpenDocument&Form=s_MailForward&l=en’;
Subject: RE: Domino Web Access - showModalDialog
Hello Yazdi,
I tried that line and nothing changed. Any other ideas?
The odd thing is that I am not getting any kind of error when I click the button. I would have thought I would have received a javascript error.
Thanks.
Subject: RE: Domino Web Access - showModalDialog
what is the version of FF?
If 3 then u r out of luck, IBM does not have that working/supported yet.
Subject: RE: Domino Web Access - showModalDialog
I am using 3. Would this work in Firefox 2.x?
Thanks.
Subject: RE: Domino Web Access - showModalDialog
I have been working with FF2, 3 requires additional internals that are have not yet been built into Forms.nsf, you will have to wait till IBM updats them.
Subject: RE: Domino Web Access - showModalDialog
So how does the rest of the DWA template work? Obviously they aren’t using showModalDialog.
Subject: RE: Domino Web Access - showModalDialog
it is not 100%, most of it works but not ALL, till IBM resolves the js code
It was the same thing with IE7, which was resolved in 7.0.3
Subject: RE: Domino Web Access - showModalDialog
So is there another way that I can open a window? My window does not necessarily need to be Modal.
I tried window.open, but when I do that I get an error saying, “Sorry, we are unable to process your request at this time. If you are unable to continue working in your mail file, please dismiss this warning and then select View, Reload from your browser’s menu.”
Thanks
Subject: Domino Web Access - showModalDialog
“Implements something similar to” does not mean that showModalDialog(), a proprietary IE method, will work in other browsers. You need to find the dialog hook that DWA provides or “implement something similar to showModalDialog()” in your own code.
Subject: RE: Domino Web Access - showModalDialog
Hello Stan,
I’m a big fan of yours. Your posts have saved me many a time. So thanks for that and thanks for looking into this for me.
The redbook says the following:
As described in Example 5-2 on page 71, the New Message action menu onclick event is replaced with the javascript:showHeaderDialog() statement. This function (see Example 5-3) uses Internet Explorer’s window.showModalDialog DOM method to display the custom dialog box. Domino Web Access implements something comparable for Gecko, so this will work on Firefox and Mozilla as well. Using this function, the dialog box automatically behaves as a modal dialog.
So, I guess my question is, if DWA didn’t implement something called window.showModalDialog for Gecko, what is the hook that I should be using?
Thanks