Click to See Complete Forum and Search --> : Firefox question


Webskater
02-04-2005, 05:30 AM
I know everyone hates IE but can anyone tell me please if Firefox allows you to open modal windows and whether it has a similar window.createPopup() function?

Fang
02-04-2005, 05:52 AM
Mozilla supports a 'modal window', one that stays on top.
Use window.open with the added feature of modal=yes

Webskater
02-04-2005, 06:36 AM
Thanks for your answer. But no window.createPopup() type feature?

Fang
02-04-2005, 06:49 AM
No, but window.open can give similar results and is supported by more browsers.
Which particular feature of createPopup is important?

kfsone
07-20-2005, 11:46 AM
"window.open" is displayed as a whole other window and can leave the bounds of the parent's frame. window.createPopup is a cross between window.open and a floating/hidden <div>. It just takes some of the hassle out of having to add HTML elements to the page whose sole purpose is to be used by javascript.

You can probably create something akin to window.createPopup but it means creating (or borrowing) a ton of code for creating and manipulating a floating/hideable div, and it means all your window.document.blah and window.document.body.blah references will have to be converted to window.blah references.

Personally, I think its more important to support more users than more than more browsers. Hopefully the Firefox team will learn from the Thunderbird team.

window.open example (http://www.kfs.org/~oliver/images/open1.jpg)

window.createPopup example (http://www.kfs.org/~oliver/images/open2.jpg) (styled instance, the color/border are styled not default)

kfsone
07-20-2005, 03:48 PM
http://msdn.microsoft.com/workshop/samples/author/dhtml/popup/usingpopup.htm

has a some demonstrations of what people use createPopup for. The name is misleading because it implies it'll be a popup window, it isn't, it's a set of wrappers around a floating div with all the features of a window.

And to spare you too long on the Dark Lords site:


8x--- snip ---x8
Below is a list of important features of the popup object. Many of these features make the popup object useful for creating custom menus and displaying quick reference information.

Unlike most window types, popup object does not have border chrome around it. The following graphic is a window with border chrome.



A popup object always closes when the user clicks away from it or when another popup object is opened.
The popup object never has focus when it is displayed so processes continue to run in the parent window.
DHTML that populates the popup object can be stored inside the parent document or in another document.
The popup object does not support text boxes of any kind.
No elements inside of the popup object can be selected.
No navigation can occur inside the popup object itself (clicking a link will launch navigation in the parent window or a new instance of the browser).
Once displayed, the popup object cannot be moved by the user.
The popup object cannot be resized by the user.

tyagi_pankaj_in
08-02-2005, 07:11 AM
hi,
i am new to this group...

i am also working with same types of issue...

i think there is also one major difference b/w window.popup and other Divs or windo.open

window.popup , gives a popup which can be on top of any windowed elements like (<select> i.e). which is not possible by any other alternatives. this is very much required when creating DHTML navigation bar.

also , i have tried http://msdn.microsoft.com/workshop/samples/author/dhtml/popup/usingpopup.htm
in firefox, no feature is working,, that's why ,i am also searching some thing excatly like window.oppuo for firefox and netscape browsers..

if some body have any suggestions, please let me know..

With Regards,
Pankaj Tyagi

Kravvitz
08-02-2005, 01:33 PM
First of all please start your own threads instead of going off-topic in others peoples'.

Take a look at this article. (http://www.hiermenuscentral.com/samples/iframe.html)