GornHorse Posted December 9, 2003 Posted December 9, 2003 Hi There, I need to have a .aspx page used as a modal dialog to indicate to the user that their request is being processed in the background. From the main page, i have the following javascript: var vreturn = window.showModalDialog("REMS_Result.aspx", self, ""); This opens the modal fine, but the modal will not reference the opener as existing, i keep getting a null or empty error when i try to reference it. Within my modal, i have the following code... function setupFnc(){ var opener = window.DialogArguments; var val = opener.Form1.tbhidden.value; while (val != "complete") { val = opener.Form1.tbhidden.value; } window.close(); } What am i doing wrong? If there is a better way of doing this, please let me know! Cheers, Michelle Quote
WebJumper Posted December 11, 2003 Posted December 11, 2003 modal dialogs haven't an opener! But you can pass parameter (e.g. the document of the opener window to the model dialog)! ProgBar = window.showModelessDialog("ProgressBar/ProgBar.htm","document","dialogHeight: 120px; dialogWidth: 300px; edge: Raised; center: Yes; help: No; resizable: No; status: No; unadorned: No"); in the modal the can user the dialogArgumnts you have passed into All understood? regards, Stefan Quote
WebJumper Posted December 11, 2003 Posted December 11, 2003 Oh damn, i see at the moment i've wrote you have further written.... OK, in my Projekt it works with this code: In the modal dialog: myOpener = dialogArguments.document; the "Opener" ToolBox = showModelessDialog('artisoRED/ToolBoxFrame.htm',window,'dialogHeight:145px; dialogWidth:560px;scroll:on;status:on'); This code is snipped out 100% and works by me! Regards! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.