Welcome to WebmasterWorld Guest from 54.162.172.144

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)

New User

10+ Year Member

joined:Jan 23, 2004
posts:26
votes: 0


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 June 26, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 22, 2002
posts:1749
votes: 0


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 June 26, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 6, 2004
posts:2239
votes: 0


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 June 26, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 4, 2004
posts:388
votes: 0


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 June 26, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 15, 2004
posts:2047
votes: 0


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

New User

10+ Year Member

joined:Jan 23, 2004
posts:26
votes: 0


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 July 7, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:May 27, 2003
posts:79
votes: 0


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.