|
| |
|
|
_gail
Posts: 2876 From: So FL Status: offline
|
Small pop-up window effects size of other windows - 3/18/2002 9:28:04
I have a small-sized pop-up page using the javascript below. The page contains a series of links, each of which is set to open in a "new window." I have two problems: 1- when links are clicked, each new window opens the same small size as the pop-up page. As a result, a person must resize each page they open from the pop-up. I'd like to to know if the windows can be set to open full size. 2- I notice a small "Error on page" icon in the left-hand, bottom corner of the window. When I click on it the window says (among other things) "Object expected." However, other than what I've mentioned above, the pop-up window itself appears to be functioning properly. Any suggestions? Gail <script> function sizeMe() { window.moveTo(10,10); window.resizeTo(260,100%) } </script> </head> <body bgcolor="#FCFCF3" link="#006C00" vlink="#666666" alink="#2854A8" onload="javascript:sizeMe('popup-page.htm')"> <p> <!-- Script Size: 0.56 KB --></p>
|
|
|
|
HomerBohn
Posts: 101 From: Montgomery Village, MD, USA Status: offline
|
RE: Small pop-up window effects size of other windows - 3/18/2002 16:08:10
Could you post the URL, so I can get a visual of what you're talking about...it's usually easier to do it that way. Thanks. Bohnzie <br> Making easy HTML tasks seem impossible since 1979
|
|
|
|
_gail
Posts: 2876 From: So FL Status: offline
|
RE: Small pop-up window effects size of other windows - 3/18/2002 16:41:49
Same url as usually keeps me on my toes: [url]www.arborsnews.com [/url] via the "See what's new" button. Thanks, gail
|
|
|
|
sarge
Posts: 379 From: London England Status: offline
|
RE: Small pop-up window effects size of other windows - 3/18/2002 23:46:53
I've had that popup size thing too, and it only seems to happen on some of the popups. Clicking the maximise square doesn't seem to stop it - only dragging to resize. You can set new windows to maximise on opening, but some people get cranky about this (notably Gil), so its probably not a good idea. If nobody knows the answer, I could do some detective work on which popups are causing this etc., but its a matter of finding the time. Sarge
|
|
|
|
Reflect
Posts: 4769 From: USA Status: offline
|
RE: Small pop-up window effects size of other windows - 3/19/2002 7:31:06
Hi, Using NN I found these two errors (I noticed the JS error in NN so in the URL bar I typed javascript: and it launches a window that debugs the JS errors)... JavaScript Error: http://www.arborsnews.com/popup.htm, line 13: syntax error. window.resizeTo(300,100%) ........................^ JavaScript Error: http://www.arborsnews.com/popup.htm, line 18: sizeMe is not defined. Not sure about sizeme but the syntax error you used a percentage it should be thought of using pixels or no % sign... window.resizeTo(300,100%) You are setting the width to 300 pixels but the hieght is set to 100% which is not valid. Sorry I could not help more, not the best JS person. Brian Work hard, play fair, stay sane Edited by - Reflect on 03/19/2002 07:32:17
|
|
|
|
_gail
Posts: 2876 From: So FL Status: offline
|
RE: Small pop-up window effects size of other windows - 3/20/2002 9:02:11
quote: window.resizeTo(300,100%) ........................^ Not sure about sizeme but the syntax error you used a percentage it should be thought of using pixels or no % sign...
I eliminated the % measurements and returned to the settings I originally had. I thought perhaps not contraining one dimension would eliminate the problem. Still seeking for an answer to how to have "new window(s)" open larger than the small pop-up window. Perhaps this can not be done. Thanks, gail
|
|
|
|
caywind
Posts: 1479 From: USA Status: offline
|
RE: Small pop-up window effects size of other windows - 3/20/2002 15:10:32
You can specify the size in Javascript, however calculating the size of the previous window and then making the new one bigger, thats going to get more complex. Do as all programmers do, go find the code out there, Here's a start http://javascript.internet.com/navigation/. Somebody around here might have it, I don't <spellcheck> </spellcheck>
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|