By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,337 Members | 2,084 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,337 IT Pros & Developers. It's quick & easy.

replacement for window.showmodelessdialog in mozilla

P: n/a

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 ***
Jan 17 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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
Jan 17 '06 #2

P: n/a


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/
Jan 17 '06 #3

P: n/a


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 ***
Jan 17 '06 #4

P: n/a
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
Jan 17 '06 #5

P: n/a
anand basha wrote:

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>

--
Rob
Jan 17 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.