By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,462 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,462 IT Pros & Developers. It's quick & easy.

Resizing frames without framesets using javascript

P: 3
Hi!!!
Am Lettisha. Am using Struts and Tiles framework. My screen is divided into three parts. Header, Left Nav and Content. Can the user resize the frame by dragging the left nav dynamically? Can anyone gimme solution plllzz?
Jun 20 '07 #1
Share this Question
Share on Google+
5 Replies


acoder
Expert Mod 15k+
P: 16,027
Welcome to TSDN!

Post some code so we can see what you have so far.
Jun 20 '07 #2

P: 3
Welcome to TSDN!

Post some code so we can see what you have so far.
Hi!!!
Thanks for that quick respose. Here Am attaching my code. Am using struts framework. am including Struts and Tiles code.
In Tiles i've defined a layout like this

<definition name="layout" path="/layout.jsp">
<put name="title" value="Welcome" />
<put name="header" value="/header.jsp" />
<put name="topMenu" value="/topMenu.jsp" />
<put name="leftMenu" value="/leftMenu.jsp" />
<put name="content" value="/index.jsp" />
</definition>

in Struts i've called my action like this

<action path="/showHome" type="com.actions.ShowHomeAction">
<forward name="success" path="page.login"/>
</action>

and in Tiles

<definition name="page.login" extends="layout">
<put name="content" value="/loginform.jsp" />
</definition>

Now a frame is created with a header, top menu, left nav and a content. Now i want to resize my frames dynamically.
Can you help me out.
Jun 25 '07 #3

acoder
Expert Mod 15k+
P: 16,027
How does this turn out in HTML?

Isn't the dragging default behaviour in a browser?
Jun 25 '07 #4

P: 3
How does this turn out in HTML?

Isn't the dragging default behaviour in a browser?

the screen will be displayed as a frameset. and nope dragging isnt a default behavior in browser
Jun 25 '07 #5

acoder
Expert Mod 15k+
P: 16,027
See this example. You can resize the frame on clicking the button. I can resize the frame by dragging the edge of the frame.
Jun 25 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.