Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how do I make the "resizeTo() "command work only for specified page, not for every subsequent page

Reply
Thread Tools

how do I make the "resizeTo() "command work only for specified page, not for every subsequent page

 
 
Jules Flynn
Guest
Posts: n/a
 
      04-25-2004
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
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      05-03-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Subsequent declaration on TH and TD doesn't work milanobybike@gmail.com HTML 13 01-12-2007 10:42 AM
share function argument between subsequent calls but not between class instances! K. Jansma Python 7 02-21-2006 01:31 PM
Page_Load Not Firing On Subsequent Views of the Page Guadala Harry ASP .Net 4 09-11-2004 07:36 AM
SmartNavigation doesn't work on first postback (but on all subsequent postbacks) Ryan Breakspear ASP .Net 0 11-18-2003 05:06 PM



Advertisments