Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pop up dialogue for 'Netscape'

0 views
Skip to first unread message

Rudolf Henning

unread,
May 25, 2001, 8:28:01 AM5/25/01
to
Does someone know a way to "simulate" the showModalDialog function so the
non IE browsers can also make use of a dialogue window where a user can
select a value that needs to be returned to the parent window?

The showModalDialog method allow for a second parameter that is a data
"structure" which used by the child window and can be passed back to the
parent page afterwards. This is the functionality that I also need to be
working in e.g. Netscape 4.7x.

thanks

please also reply to my email address as well.

Rudolf Henning
Rud...@Hotmail.com

Martin Honnen

unread,
May 27, 2001, 7:41:43 AM5/27/01
to
You can bring up a modal dialog with trusted script:

netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserWrite');
var win = window.open('whatever.html', 'windowName', 'modal=1')
Instead of setting returnValue you need to directly manipulate the
opener window and its properties and call the code you want to run after
the dialog is done

--

Martin Honnen
http://javascript.faqts.com/
http://home.t-online.de/home/martin.honnen/jsgoddies.html

Rudolf Henning

unread,
May 28, 2001, 7:44:46 AM5/28/01
to
Thanks for the tip,

would it be possible to give a sample of how to manipulate the 'opener'
window properties once the modal window is closed?
Would it be something in the line of

var win = window.open('whatever.html', 'windowName', 'modal=1');
localvar = win.someproperty; -- where someproperty was defined in
whatever.htm

Rudolf

"Martin Honnen" <Martin...@t-online.de> wrote in message
news:3B10E7F7...@t-online.de...

0 new messages