Mira060397
asked on
Simulating a ModalDialog window in VBScript
Is there anyway I can simulate a Modal Dialog window in VBScript with a window.open? I don't want to use the
window.showModalDialog command because there are features in the standard window that I need that is not supported by the showModalDialog window.
Basically I want my window to simulate the action that the window does not lose focus until it is closed.
Any ideas?
window.showModalDialog command because there are features in the standard window that I need that is not supported by the showModalDialog window.
Basically I want my window to simulate the action that the window does not lose focus until it is closed.
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What do you have in the body?
Any input fields or buttons in the mymodal.htm should be inside the <BODY></BODY> tags so if the body has focus the user shoudl be able to interact. I will have a look in IE4.
In the meantime, you can shift the focussing to the body tag in the opening page instead <BODY onFocus="if (WinId && window.focus) WinId.focus()">
Michel
Any input fields or buttons in the mymodal.htm should be inside the <BODY></BODY> tags so if the body has focus the user shoudl be able to interact. I will have a look in IE4.
In the meantime, you can shift the focussing to the body tag in the opening page instead <BODY onFocus="if (WinId && window.focus) WinId.focus()">
Michel
You are correct! What a crock!
It works in NS 3 and 4 so we need to find a workaround somehow...
I will investigate tomorrow
Michel
It works in NS 3 and 4 so we need to find a workaround somehow...
I will investigate tomorrow
Michel
ASKER
select anything in the myModal.htm. It seems that it keeps giving the focus to the <BODY> and anytime I click some element with in the <BODY> it causes the <BODY> to lose focus, so it resets the focus, etc. I'm testing this in IE4, so I don't know if this is suppose to work in Netscape.