Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   how do I make the "resizeTo() "command work only for specified page, not for every subsequent page (http://www.velocityreviews.com/forums/t876948-how-do-i-make-the-resizeto-command-work-only-for-specified-page-not-for-every-subsequent-page.html)

Jules Flynn 04-25-2004 06:07 PM

how do I make the "resizeTo() "command work only for specified page, not for every subsequent page
 
what seems quite a simple problem but I'm not sure how to get round
it:

my web site relies on the opening of "pop-up" windows at specific
sizes (don't worry - the windows are requested by the visitor) in
order to display art-work.

However at some point I've had to use the resizeTo(400, 500) command
- after this has been done all subsequent "pop-up" windows open to
this size rather than the size they're supposed to.

The browser seems to assume that all subsequent windows want to be
opened to (400, 500)

can anybody help

you can check out the site: www.selfportrait.artimedia.co.uk

thanks

jules

Thomas 'PointedEars' Lahn 05-03-2004 07:37 AM

Re: how do I make the "resizeTo() "command work only for specifiedpage, not for every subsequent page
 
Jules Flynn wrote:

> my web site relies on the opening of "pop-up" windows at specific
> sizes (don't worry - the windows are requested by the visitor)


I you would have bothered to read previous discussions,
you would have known that popups are evil[tm] anyway
and that you therefore cannot rely on them.

> in order to display art-work.


?

> However at some point I've had to use the resizeTo(400, 500) command


No, you do not *have* to nor do you want to use that.
window.resizeTo() breaks with tabbed browsing, e.g.

> - after this has been done all subsequent "pop-up" windows open to
> this size rather than the size they're supposed to.


That is the default behavior. Child windows
copy the features of their parent window.

> The browser seems to assume that all subsequent windows want to be
> opened to (400, 500)


Exactly.

> can anybody help


Ask Google (Groups) about the window.open() method.


PointedEars


All times are GMT. The time now is 07:12 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.