![]() |
|
|
#1
|
||||
|
||||
|
Auto-sizing pop-up window?
I'm sure there must be a way to do it, but I have no clue... Let's say I pop open a window with Javascript, and it displays a table of info that can vary in size both vertically and horizontally.
Is there a way with Javascript (or anything else) that could auto-size the widow to fit the table? - Shawn
__________________
- Shawn Keyword Tracker now supports Google (once again) as well as Bing (new) and Yahoo Please do not PM, IM or email me for product or tool support (they will go unread/ignored), and don't "friend" me unless we are really friends. |
|
#3
|
||||
|
||||
|
No, the table is variable (not being able to know the size)...
- Shawn
__________________
- Shawn Keyword Tracker now supports Google (once again) as well as Bing (new) and Yahoo Please do not PM, IM or email me for product or tool support (they will go unread/ignored), and don't "friend" me unless we are really friends. |
|
#4
|
||||
|
||||
|
Wouldn't you have to dynamically create the data and then take that info which would need to have a size reference library to give you the dimensions that you could then dynamically place in the code for the window size and then call the window?
|
|
#5
|
||||
|
||||
|
Doing it that way isn't an option... It needs to be sized after the fact (after the window pops). To give an idea of what it's for, it's within the keyword tracker. When you have the option to show surrounding URLs and a manual query opens the pop-up window showing the various URLs.
Not mission critical, but it would be nice I think... - Shawn
__________________
- Shawn Keyword Tracker now supports Google (once again) as well as Bing (new) and Yahoo Please do not PM, IM or email me for product or tool support (they will go unread/ignored), and don't "friend" me unless we are really friends. |
|
#6
|
||||
|
||||
|
MMmmmm
I've had to many sherbets at lunch! I'll think on this one
|
|
#7
|
|||
|
|||
|
This script will resize a window on load, but you'll have to tinker to figure out variable reszing based on content.
My suggestion would be to go with a fixed window size and then make yout table variable to fill it. BTW, one advantage of this is you can open the page witha regualr link, so it won;t get blocked by pop-up blockers. <script language="JavaScript"> <!-- function opener() { window.open('logger.asp','Login','toolbar=no,status=no,scrollbars=no,locatio n=no,menubar=no,directories=no,width=500,height=300')} --> </script> </head> <body onLoad="opener()"> TampaDave |
|
#8
|
||||
|
||||
|
Yeah, that's what I'm doing now... sizing it statically with JavaScript. Would just be nice to be able to adjust it after the page loaded somehow.
- Shawn
__________________
- Shawn Keyword Tracker now supports Google (once again) as well as Bing (new) and Yahoo Please do not PM, IM or email me for product or tool support (they will go unread/ignored), and don't "friend" me unless we are really friends. |
|
#9
|
|||
|
|||
|
Code:
window.resizeTo(300, 200)
|
|
#10
|
||||
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DMOZ and auto submission | TLDTrader.com | ODP / DMOZ | 10 | Jun 11th 2004 11:42 pm |
| I had enough of auto link chasers | expat | Link Development | 5 | May 14th 2004 10:42 am |