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
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.
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?
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
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
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