Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Change Frame Size 2

Status
Not open for further replies.

ToddWW

Programmer
Mar 25, 2001
1,073
US
Is there a way to dynamically change the size of the windows inside of a frameset ?

ToddWW
 
Not that I know of. I wish I did. If you could use Iframes instead of individual frames, it would be really easy and I can give you the code. You could probably make your page display just as well with Iframes...if you want to take a little time to do it.
Rick
 
the parent keyword gives you access to the <FRAMESET>.
Then you can change any attributes of elements inside - just give your frameset tag a name, so you can reference it.

<frameset rows=&quot;50%,*&quot; name=&quot;body&quot;>
<frame name=&quot;top&quot; src=&quot;test1.htm&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;auto&quot; frameborder=&quot;0&quot;>
<frame name=&quot;bottom&quot; src=&quot;test2.htm&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;auto&quot; frameborder=&quot;0&quot;>
</frameset>


Then call to it from one of the frames like:

...
parent.body.rows = &quot;2%,*&quot;;
...


Then put a nice timeout in there, and you have a nice curtain effect.
Been looking for you in ASP actually, the carts are working out well with your suggestion of using dynamicdb table.
I used to be activeX - you helped me out a while ago
;-)
 
Thanks. Yeah, I've been traveling quite extensively for the past several months. Now we've got a new version due to release in September so I'll be back here more on a regular basis.

Thanks for the tip. I really need to get a good reference on the Document Object Model. You're suggestion worked great. I am trying to duplicate what they do on MSDN with that table of contents on the left that collapses when you push the X. Looks like I'm closer than I thought.

Have a great day.

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top