Digital Point Forums
Money Order

Go Back   Digital Point Forums > Design & Development > Programming > JavaScript
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Mar 5th 2004, 12:32 pm
digitalpoint's Avatar
digitalpoint digitalpoint is offline
My cat is on Prozac... really. lol
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 22,359
digitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond repute
Phone Verified
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.
Reply With Quote
  #2  
Old Mar 7th 2004, 3:05 am
Mr T's Avatar
Mr T Mr T is offline
Grunt
 
Join Date: Mar 2004
Location: Driving my van, fool! In the UK!
Posts: 62
Mr T is on a distinguished road
Are you able to work out the size of the table? If so, you could just set the window to be big enough.

This sort of technique.
__________________
Sublime Creation | Casino Reviews
|
Reply With Quote
  #3  
Old Mar 7th 2004, 12:43 pm
digitalpoint's Avatar
digitalpoint digitalpoint is offline
My cat is on Prozac... really. lol
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 22,359
digitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond repute
Phone Verified
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.
Reply With Quote
  #4  
Old Mar 9th 2004, 12:12 am
Foxy's Avatar
Foxy Foxy is offline
Chief Natural Foodie
Recent Blog: Knitting Yarn
 
Join Date: Mar 2004
Location: On a Boat
Posts: 1,614
Foxy has a spectacular aura aboutFoxy has a spectacular aura about
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?
__________________
Ciao Foxy

modular homes
Reply With Quote
  #5  
Old Mar 9th 2004, 7:38 am
digitalpoint's Avatar
digitalpoint digitalpoint is offline
My cat is on Prozac... really. lol
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 22,359
digitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond repute
Phone Verified
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.
Reply With Quote
  #6  
Old Mar 9th 2004, 10:57 am
Foxy's Avatar
Foxy Foxy is offline
Chief Natural Foodie
Recent Blog: Knitting Yarn
 
Join Date: Mar 2004
Location: On a Boat
Posts: 1,614
Foxy has a spectacular aura aboutFoxy has a spectacular aura about
MMmmmm

I've had to many sherbets at lunch!

I'll think on this one
__________________
Ciao Foxy

modular homes
Reply With Quote
  #7  
Old Mar 30th 2004, 8:46 am
TampaDave TampaDave is offline
Peon
 
Join Date: Mar 2004
Location: Tampa
Posts: 14
TampaDave is on a distinguished road
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
Reply With Quote
  #8  
Old Mar 30th 2004, 8:59 am
digitalpoint's Avatar
digitalpoint digitalpoint is offline
My cat is on Prozac... really. lol
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 22,359
digitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond repute
Phone Verified
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.
Reply With Quote
  #9  
Old Jan 18th 2005, 3:55 am
phrozen_ra phrozen_ra is offline
Champion of the Naaru
 
Join Date: Jan 2005
Posts: 147
phrozen_ra is an unknown quantity at this point
Code:
window.resizeTo(300, 200)
that will resize to width 300 and height 200... use it wise
__________________
Funny Quotations | Reading Glasses |
Reply With Quote
  #10  
Old Nov 11th 2008, 5:03 pm
killer2021's Avatar
killer2021 killer2021 is offline
Twilight Vanquisher
Recent Blog: lineage 3 forum
 
Join Date: Oct 2006
Posts: 618
killer2021 is on a distinguished road
Quote:
Originally Posted by phrozen_ra View Post
Code:
window.resizeTo(300, 200)
that will resize to width 300 and height 200... use it wise
lol yup. Good old window.resize to command
Reply With Quote
Reply

Bookmarks

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


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


All times are GMT -8. The time now is 7:42 am.