944,129 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 11232
  • JSP RSS
Jun 9th, 2005
0

Dynamically changing the frameset size

Expand Post »
Hey,
I'm new to Javascript and I have a frameset and I need to dynamically change the Sizes of each frame.

How to I do that??

This is my frameset definition::
<frameset rows="8%,87%,5%" >
<frame id="logo" name="banner" src="logo.aspx" noResize scrolling="no">
<FRAMESET cols="73%,27%">
<FRAME id="mainframe" name="mainframe" src="Default.aspx" scrolling="no">
<FRAMESET rows="8%,92%">
<FRAME id="downleftup" name="downleftup" src="querybuttons.aspx">
<FRAME id="downleft" name="downleft" src="layers.aspx">
</FRAMESET>
</FRAMESET>
</frameset>

if you notice the 2 nd Frameset...i have 73% and 27% ..I need to change these values based on various screen resolution...
Similar Threads
Reputation Points: 11
Solved Threads: 6
Junior Poster
Letscode is offline Offline
175 posts
since Feb 2005
Jul 5th, 2005
0

Re: Dynamically changing the frameset size

Anybody?I'm still struck with this problem
Reputation Points: 11
Solved Threads: 6
Junior Poster
Letscode is offline Offline
175 posts
since Feb 2005
Apr 28th, 2006
0

Re: Dynamically changing the frameset size

Quote originally posted by Letscode ...
Anybody?I'm still struck with this problem


you can find the solution on this link

http://www.siteexperts.com/tips/elements/ts11/page1.asp


Bye happy coding
Yusuf
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Yusuf Shabbir is offline Offline
1 posts
since Apr 2006
Dec 30th, 2010
-1

using jsp page

If u r using jsp page means v can easily changing the frame size at runtime.
JSP Syntax (Toggle Plain Text)
  1. <%!
  2. int size=100;
  3. %>
  4. <frameset border="0" rows="<%size%>,230">
  5. <frame src="JSP_1.jsp" name="FRAME_NAME_1">
  6. <frame src="JSP_2.jsp" name="FRAME_NAME_2">
  7. </frameset>
  8. </frameset>

If u change the value of "size" that frame size will b change.
Reputation Points: 7
Solved Threads: 0
Newbie Poster
parith is offline Offline
1 posts
since Dec 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: help with jsp pagination
Next Thread in JSP Forum Timeline: problem with drop downlist using JSTL





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC