Author
Frames
Nimmy
Greenhorn
Joined: Apr 12, 2005
Posts: 13
posted Jul 08, 2005 00:53:00
0
I have one page which contains two frames. There is a link in first frame and while cliking that link I want to load another page in the same window. Can we do that while using frames. Thanks in advance Kathryn
Satish SN
Ranch Hand
Joined: Apr 19, 2005
Posts: 70
hi Kathryn , using javascript u can do that example if ur using a form object then u can set the properties .target = 'frame name' to load the response to the following frame if u could post the code then i could give u good solution
Satish SN<br />SCJP 1.4 & SCWCD 1.4
Nimmy
Greenhorn
Joined: Apr 12, 2005
Posts: 13
posted Jul 08, 2005 03:08:00
0
<HTML> <HEAD> <TITLE>Masters</TITLE> </HEAD> <frameset rows="12%,88%"> <frame bordercolor="#000000" noresize="noresize" src="header.jsp" scrolling="no"> <frame bordercolor="#000000" noresize="noresize" src="body.jsp" scrolling="no"> </frameset> </HTML> This is my first jsp file with two frames. header.jsp <HTML> <HEAD> <TITLE>Masters</TITLE> </HEAD> <a href="newPage.jsp"> Next Page</a> </HTML> Now if I click on Next Page it is displaying in the same frame. I want this to get displayed in the whole window not in the second frame.
Satish SN
Ranch Hand
Joined: Apr 19, 2005
Posts: 70
u change the anchor to some thing like this <a href="newPage.jsp"> Next Page</a> <a href="newPage.jsp" target="_parent"> Next Page</a>
Nimmy
Greenhorn
Joined: Apr 12, 2005
Posts: 13
posted Jul 08, 2005 07:52:00
0
Hi kumar satish It is working now. Thank you Kathryn
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56204
"nKathryn", You have already recevied two warnings to adjust your display name to conform to JavaRanch standards in this topic . This is not optional. Accounts with invalid display names are removed. Read the JavaRanch Naming Policy and adjust your display name to match it prior to your next post. bear Forum bartender
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
subject: Frames