From: anand basha on

what is the replacement for window.navigate in mozilla

&

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

*** Sent via Developersdex http://www.developersdex.com ***
From: Thomas 'PointedEars' Lahn on
anand basha wrote:

> 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:

<URL:http://e-pla.net/documents/manuals/javascript-1.0/ref_h-l.html#location_object>

> [...]
> 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:

<URL:http://developer.mozilla.org/en/docs/DOM:window>

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

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


PointedEars
From: Martin Honnen on


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


--

Martin Honnen
http://JavaScript.FAQTs.com/
From: anand basha on


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

*** Sent via Developersdex http://www.developersdex.com ***
From: Thomas 'PointedEars' Lahn on
anand basha wrote:

> 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