Click here to Skip to main content
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 1: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 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 120
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2014
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