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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

resizing a frameset via code 1

Status
Not open for further replies.
I've not tried this code, and have no idea how valid it is, or if it will work... but give it a try anyway ;o)

Let's say your initial frameset definition had either:

Code:
rows="50, *"

or

Code:
cols="20, *"

or something similar. I'd suggest (from one of the frames), something like this:

Code:
parent.frames['topFrameName'].rows = '20, *';

or

Code:
parent.frames['topFrameName'].cols = '50, *';

accordinlgy. If your values are different, then put whatever values you like in.

As I said, I've not tried it, but the theory is sound ;o)

Hope this helps,
Dan


 

Doh! After re-reading my code, I realised that there was no way it would work. This, however, I have tested, and can assure you does work ;o)

Code:
parent.document.getElementsByTagName('frameset')[0].setAttribute('rows', '25%, 75%', 0);

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top