replacement for window.showmodelessdialog in mozilla

A

anand basha

what is the replacement for window.navigate in mozilla

&

i was used window.showmodelessdialog in IE5 - in mozilla it is not
working
 
T

Thomas 'PointedEars' Lahn

anand said:
what is the replacement for window.navigate in mozilla

(<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/navigate.asp>)

window.location = "...";

works in both --

<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_location.asp>
<URL:http://developer.mozilla.org/en/docs/DOM:window.location>

-- and it probably works in every HTML UA with client-side script support:

[...]
i was used window.showmodelessdialog in IE5 - in mozilla it
is not working

Of course, window.showModelessDialog() (case-sensitive!) it is a proprietary
method of the IE4+ DOM:

,-<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodelessdialog.asp>
|
| [...]
| Standards Information
|
| There is no public standard that applies to this method.


Mozilla/5.0 implements the Gecko DOM:

*** Sent via Developersdex [...] ***

Don't. <URL:http://jibbering.com/faq/faq_notes/pots1.html>


PointedEars
 
M

Martin Honnen

Thomas 'PointedEars' Lahn wrote:

Of course, window.showModelessDialog() (case-sensitive!) it is a proprietary
method of the IE4+ DOM:

IE5+, IE 4 had showModalDialog only
 
A

anand basha

Sir,
There is any way to use showModalDialog in mozilla,i was used
showModalDialog in IE , i have to convert IE to mozilla
now i urgently need your help
 
T

Thomas 'PointedEars' Lahn

anand said:
There is any way to use showModalDialog in mozilla,

Is that a question?
^
Please follow the links that were posted before you post a followup.
_There is no `showModalDialog' in the Gecko DOM_, so no way to use
`showModalDialog' in Mozilla(/5.0).

It appears there is an undocumented window.openDialog() method in newer
Gecko-based UAs since rv:0.9 (because Netscape 6 is mentioned in the FAQ)
which may provide for a viable alternative, but I have never used that:

<URL:http://developer.mozilla.org/en/docs/DOM:window>
(I already posted this)

However, it appears also that it requires a signed and trusted script:
<URL:http://www.faqts.com/knowledge_base/view.phtml/aid/1602>

JFTR: Do not attempt to emulate a modal dialog by trying to keep a window
on top; it will only annoy your users when they try to use other browser
windows or tabs, and other application software that have a windowed GUI.


PointedEars
 
R

RobG

anand said:
Sir,
There is any way to use showModalDialog in mozilla,i was used
showModalDialog in IE , i have to convert IE to mozilla
now i urgently need your help

Below is a link to a long discussion about the pros and cons of allowing
modal dialogs.

<URL"https://bugzilla.mozilla.org/show_bug.cgi?id=194404>


The bottom line is that most developers are fundamentally opposed to
them, the only support comes from those who want it because IE has it -
not a particularly sound technical reason.

There are two things you can do to get a bit of modality:

1. Use script to force the pop-up to get focus every time the opener
gets focus. It's a rather awful idea because it causes the
windows to flash quite a bit, especially on older machines.

2. Open the pop-up with a Dependent attribute with value 1. This
isn't really modal, it just keeps the pop-up in front of the opener.
There is a sample here:

<URL:https://bugzilla.mozilla.org/attachment.cgi?id=115195&action=view>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top