yup. Andiv is right. Without a src in the original frameset, your just adding confusion to your browser.
Main Topics
Browse All TopicsHi experts,
I have 2 frames.
Ist frame has been splitted into 2 halves and the 2nd frame is none. (pls imagine the api of java.sun.com frame version)
I have some html referring in the 1st half and wheni click that reference it should display the text in the 2nd half of the frame my html code is as below.
<html>
<head>
<title>this is a test for frame</title>
</head>
<FRAMESET cols="40%,60%">
<frameset rows="40%,60%">
<frame src="http://xxx.xxx.xx.xxx
<frame name="framesec">
</frameset>
<frame src="http://xxx.xxx.xx.xxx
</frameset>
</html>
In the frame1c1.htm i have the following
<html>
<head>
<title>This is frame1</title>
<body>
<a href="http://xxx.xxx.xx.xx
</body>
</head>
</html>
when i click the reference i need to get the data of product.htm in the framesec now it is opening a new window and then displaying it which i dont want please help me out to solve this error.
Hope i have posted my question clearly.
Thanks for ur help,
seenu
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hmmm. I think there is another problem here.
frameset.htm:
<html>
<head>
<title></title>
<script></script>
</head>
<frameset cols="40%,*">
<frameset rows="40%,*">
<frame src="http://is23/ee/frame1
<frame name="framesec">
</frameset>
<frame src="http://is23/ee/frame2
</frameset>
</html>
frame1c1.htm:
<html>
<head>
<title>This is frame1</title>
<body>
<a href="http://is23/ee/95-nt
</body>
</head>
</html>
worked fine for me (IE5; PWS/NT wks).
(I think the comments above are valid, but not necessarily the root of the problem.)
Tom
Here is your frames and codes i have done up with simple tests. To show you were your targets will end up. Please make these test htm's for yourself then see how they work. It will solve your problem i think.
file index.htm
<html>
<head>
<title>This is Frameset index.html</title>
</head>
<FRAMESET cols="40%,60%">
<frameset rows="40%,60%">
<frame src="frame1c1.htm" name="framefir">
<frame src="framesec.htm" name="framesec">
</frameset>
<frame src="frame2.htm" name="frame2">
</frameset>
</html>
File frame1c1.htm
<html>
<head>
<title>This is Frame1c1.htm</title>
<body>
<B>This is Frame1c1.htm</B>
<BR>
<BR><a href="product.htm" target="framesec">Places product.htm in Framesec.htm.</a>
<BR>
<BR><a href="product.htm" target="frame2">Places product.htm in Frame2.htm.</a>
<BR>
<BR><a href="index.htm" target="_top">Reset all frames.</a>
</body>
</head>
</html>
File frame2.htm
<html>
<head>
<title>Frame2.htm</title>
<body>
<H1 ALIGN="CENTER">This is Frame2.htm</A1>
</body>
</head>
</html>
File framesec.htm
<html>
<head>
<title>Framesec.htm</title
<body>
<H1 ALIGN="CENTER">This is Framesec.htm</A1>
</body>
</head>
</html>
File product.htm
<html>
<head>
<title>Product.htm</title>
<body>
<H1 ALIGN="CENTER">This is Product.htm Now</A1>
</body>
</head>
</html>
If this does not do what you want it to do please try and explain more clearly. As i have it what i think you are saying is that you want your product to show up in the large frame on the right. And what was happening in your code was product was showing up in the lower left hand frame. Or product.htm was showing up in a whole new browser window. If the later is the case it was because you were not targeting to the frame on the right you had no target. so it was just opening a new frame. that's what it did for me. Create the tests i present above then click the links you will see how the frames work and go where you want.
If this does not solve your questions feel free to give more description to what you want and what the problem is.
Midnght
Well i think my answer answers his question his question is rather confusing. He says it opens a new window all together. And when i ran his code the only thing that did that was when it was trying to go to the right hand single frame. Whcih if you look above he had no target name for it only a src. I don't know if that's what he wants. but we'll see if it solves his delema if not perhaps he'll offer more insight into what he needs. And as oyu can notice the differance in my post is mostly the aiming the target at the right hand frame. As there he had no target name. thanks for the vote of confiedence andriv. I noly hope my examples fully help himand show him what he needs done.
i think you've wrote a little mistakes .
you wrote in the frame1c1.htm i have the following
<html>
<head>
<title>This is frame1</title>
<body>
<a href="http://xxx.xxx.xx.xx
</body>
</head>
</html>
you should type just like this :
<html>
<head>
<title>This is frame1</title>
</head>
<body>
<a href="http://xxx.xxx.xx.xx
</body>
</html>
because tag <body>..</body> is not allowed in tag <head>..</head>, you've to separate them.
Business Accounts
Answer for Membership
by: andrivPosted on 1999-09-01 at 07:32:21ID: 1954724
The code to target that window is correct. Your problem might be because you are confusing the browser. When you first call the frame you should get an error message because you are not calling a src in the "framesec". If you want to be blank the create a blank html and call it in your frame html and see if that corrects the problem.