Click here to Skip to main content
11,718,016 members (82,856 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hello Mentors,

I am stuck with some HTML issues while working with frames.
I have a frameset with four frames.

In Frameset i have given rows attribute as 10%,10%,40%,40%

as follow:

<frameset id="mainbody" rows="10%,10%,40%,40%" border="false" frameBorder="0" frameSpacing="0">
<frame name="topHeader" src="../Something.aspx" frameBorder="0" marginHeight="10" noResize="noresize" scrolling="no" height="100%">
<frame name="Frame2" src="NGTPMainBody.htm" frameBorder="0" noResize="noresize">
<frame name="Frame3" frameBorder="0" noResize="noresize" scrolling="no">
<frameset id="Frame4" cols="0%,60%,0%" border="false" frameBorder="0" frameSpacing="0">


Now frames are loading great but i have one more requirement to change the frame3 and frame4 in a horizontally seperated way.

Can i do it in Javascript at runtime. Please suggest!
Posted 11-Mar-13 0:34am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Of course you can manipulate frames with javascript (if you don't try to violate same-origin policy). See these:
http://www.mobilefish.com/tutorials/javascript/javascript_quickguide_framesize.html[^]
http://javascript.gakaa.com/frame-height-2-0-width.aspx[^]

But forget frames! It is a really old way to make layout. It is deprecated already in HTML5. Switch to table-less layout if possible.
  Permalink  
Comments
Manfred R. Bihy at 11-Mar-13 8:02am
   
My five!
Especially for the last bit of advice :)
Jayanta Chatterjee at 11-Mar-13 8:51am
   
My +5 for last suggestion....
gouravkaila at 12-Mar-13 3:08am
   
Thanks Alot :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 215
1 F-ES Sitecore 210
2 Maciej Los 140
3 Jochen Arndt 120
4 Andy Lanng 115
0 Sergey Alexandrovich Kryukov 1,649
1 OriginalGriff 535
2 Maciej Los 529
3 Richard MacCutchan 440
4 CHill60 415


Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100