popup problem with FF

P

Paul J. Le Genial

Hello,

I have a problem with this script in Firefox :

var ipp =
window.open("","MadoPop","width=100,height=100,dependant=yes,resizable=no,ho
tkeys=no",true);
ipp.document.write('<html><body>test</body></html>');
ipp.document.close();
ipp.focus;

The popup windows that opens is resizable and has a visible statusbar. What
can I do to disable these two features ?

TIA
 
O

Oli Filth

Paul said:
Hello,

I have a problem with this script in Firefox :

var ipp =
window.open("","MadoPop","width=100,height=100,dependant=yes,resizable=no,ho
tkeys=no",true);
ipp.document.write('<html><body>test</body></html>');
ipp.document.close();
ipp.focus;

The popup windows that opens is resizable and has a visible statusbar. What
can I do to disable these two features ?

It might be because FF allows the user to prevent annoying behaviour
like non-resizable pop-up windows with hidden status bar...

Don't try to do this, even in IE. It pisses EVERYONE off.
 
P

Paul J. Le Genial

Oli Filth said:
Don't try to do this, even in IE. It pisses EVERYONE off.
....unless people know what will happens.
I want the ability to enlarge pictures out of my text with a popup. Events
onclick and onblur in the popup will close it. An advertisement will be
displayed below each enlargeable picture to explain that a popup will be
created.
 
T

Toby Inkster

Paul said:
I want the ability to enlarge pictures out of my text with a popup.

And if your pop-up is the wrong size, why don't you want them to be able
to resize it?
 
P

Paul J. Le Genial

Toby Inkster said:
And if your pop-up is the wrong size, why don't you want them to be able
to resize it?
Because I know the size of each picture and I pass it as an argument in
order to correct the size of the popup onload of it.
The user will not neeed to resize it.
 
T

Toby Inkster

Paul said:
Because I know the size of each picture and I pass it as an argument in
order to correct the size of the popup onload of it.

But what if that size is bigger than the user's screen size?
 
D

dorayme

From: Toby Inkster said:
Newsgroups: alt.html
Date: Wed, 16 Mar 2005 18:34:16 +0000
Subject: Re: popup problem with FF


And if your pop-up is the wrong size, why don't you want them to be able
to resize it?


Yes, indeed. Always ran into trouble if I did not allow resize. The trouble
comes in all shapes and sizes, as it were! I noticed it first when I would
see my carefully sized window too small on someone else's platform and
computer. Kept fiddling to make the windows big enough to cover most
situations and still there was occasional trouble on someone or other's
computer. I have mainly used them to show enlarged images of things *with* a
nav list to enable viewing of relevant other material in the same class (eg.
available paints and their names) *in the pop up* without having to go back
and forth between windows too often. The reason for the pop up in the first
place was to avoid getting lost on the main site. I am using them less and
less these days (in part because of their poor reputations due to extremely
annoying misuses, in part for greater simplicity of design and general
useability. If one bothers to cater for people with Javascript disabled as
one should, then one starts to think to dispense with the pop ups
altogether... but I digress. Allow resizing! Actually, what can be the harm?
You specify a size and it will only be changed if it is convenient, all that
happens is a resize corner, minor things in exchange for insurance...

dorayme
 
P

Paul J. Le Genial

Toby Inkster said:
But what if that size is bigger than the user's screen size?
Most of the users (99.9%) have a screen display of at least 800x600. This is
the maximum size of my popup. The maximum size of my images is 720x540.
 
L

Lauri Raittila

in said:
Most of the users (99.9%) have a screen display of at least 800x600.

Might be, but there is this <1% that might not be. And people with their
startup bar on left/right side have problems...
This is the maximum size of my popup.

Too big.
The maximum size of my images is 720x540.

And when user forces his 1em margin (or uses 10px default padding you forgot
to remove), you end up with too small window. Or when user has default
zoom set to 200%. (good approach if your screen is about 200ppi). And
anyway, why launch popup, no-one likes them.

Or as you already noticed,if browser/user don't allow remove of status
bar. My browser doesn't even allow sizing popups, and if I can't
implement it with useJS, I won't be getting any new windows either.
 

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,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top