Fog Creek Software
Discussion Board




Anything like window.createPopup for Mozilla?

IE5.5+ has this method to create popup windows that, when they lose focus hide themselves.  This is useful for making things like menus and drop-down controls (date picker, custom combo box, etc.)

The first benefit of this method is that you don't have to right all the code to detect when the mouse has clicked outside of the popup.

The second benefit of this method is that the popup exists as a seperate window so it can appear outside of the chrome of the parent window (very nice for menus).  This means it also appears above SELECT boxes and other embeddable controls that have their own hWnd, unlike DIV layers.

Is there anything like this for Mozilla or other "standards compliant" browsers?

Wayne
Tuesday, April 27, 2004

I don't mean to troll, but popups are going the way of the <blink> tag.  I imagine a great many users now have the Google bar or something installed that is killing popups.  Maybe there's some other way you can make this work.

untroll
Tuesday, April 27, 2004

createPopup != window.open. see examples in post above.

mb
Tuesday, April 27, 2004

While I agree that popup and popunder ads are going the way of the dodo, it should be noted that the Google Toolbar doesn't stop popup windows. It stops UNREQUESTED popup windows.

Brad Wilson (dotnetguy.techieswithcats.com)
Tuesday, April 27, 2004

window.createPopup

os.killfsckingPopup.trackdownMarketer.bitchslap

,
Tuesday, April 27, 2004

"Is there anything like this for Mozilla or other "standards compliant" browsers?"

Interesting question. Is this a standard for popup windows that I missed? Is IE5.5 a standard browser?

Tom H
Tuesday, April 27, 2004

One way of finding out is to look at a site that uses your feature in IE and then in Mozilla. If it works in Mozilla then open the source of that site and track down the included javascript.

nobody
Tuesday, April 27, 2004

Hmm, I don't think that I explained myself that badly.  I think mb got my drift.

No, I'm not talking about popups for marketing purposes, but for software development. Like mb said, read the examples that I gave.

I just figured that with all the Mozilla users around here, there might be some people who make applications with Mozilla.

Arrg, I just wasted an hour looking this up myself with no luck.  XUL I guess?

Wayne
Tuesday, April 27, 2004

I think OverLib will do everything you are looking for in a cross browser way:

http://bosrup.com/web/overlib/

Look at the clickable sticky ones - should be customisable to be just what you want.

Colm Larkin
Wednesday, April 28, 2004

Except IE popup objects have one great advantage: they are NOT limited to ONE frame, and can even be out of the window itself.

Unfortunately, I don't know any Mozilla equivalent,
and I think there should be one
since it's a very useful innovation from Microsoft.

AL
Thursday, June 03, 2004

*  Recent Topics

*  Fog Creek Home