Welcome to WebmasterWorld Guest from 54.162.227.136

Forum Moderators: open

Message Too Old, No Replies

Popup 1x1 pixel

How to create a popup of transition

     
4:28 pm on Jun 26, 2004 (gmt 0)

10+ Year Member



Hi,

I would like to open a popup in Javascript with a width and a height of 1 pixel? This will be used to check some data and open another pop up with the right size. Then the 1x1 popup will be automatically closed.

I tried to use window.open with the width and height = 1 but the size is still far to big (about 50x50).

Does anybody know the solution?

Many thanks for your help,

pH

4:46 pm on Jun 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AFAIK it cannot be done. Also there will always be a piece of that blue bar in the top.

I guess that some minimum size has been set because windows are there for users to be seen.

7:48 pm on Jun 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



By all reports, window.open() cannot open a window smaller than 100px X 100px.

What about collecting the info you need in the current window, then use self.resizeTo(x,y)?

Or even open the new window to collect the data, then resize that small window to the size it needs?

10:01 pm on Jun 26, 2004 (gmt 0)

10+ Year Member



Quite a few sites use the nasty tactic of loading popups offscreen and then moving them when they're ready.

AFAIK this is only an IE only thing though, but could be what you're looking for :)

J.

11:38 pm on Jun 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could you use an invisible IFRAME for the same thing?
4:11 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



Hi all,

Many thanks for all theses solutions! I like very much the idea of auto resizing the window ;)

All technics are very impressive, I will get more info on them to be sure to have the right solution in hand ;)

Again, thx you all for your support!

pH

8:18 pm on Jul 7, 2004 (gmt 0)

10+ Year Member



Can't you pop the window off the screen so it is never seen by the user? Then write a script to automatically close the window within 5 seconds.

Just an idea.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month