Forum Moderators: open

Message Too Old, No Replies

Problem with frames

Works correctly in firefox but not in IE

         

BadGoat

5:31 pm on Jun 3, 2006 (gmt 0)

10+ Year Member



Frame opens correctly in firefox but doesn't open correctly in IE. When the link is clicked in IE the frame opens in a seperate browser, when it should open in a frame called "MAIN". My index.php page specifies the frames:

<frameset cols="23%,77%">

<frameset rows="100%" >
<frame frameborder="1" name="SIDEBAR" src="framea.html">
</frame>
</frameset>

<frameset rows="10%,90%">
<frame frameborder="0" name="NAV" src="nav_header.php">
</frame>
<frame frameborder="0" name="MAIN" src="frameb.html">
</frame>
</frameset>

</frameset>

The links are targeted to the frames using:

<BASE TARGET="MAIN">
<a href="feature_add.php"> Add Feature</a>

It works fine in Firefox, but when I click the link in IE it opens in a new browser. Any idea of what I need to do?

samija

8:46 am on Jun 15, 2006 (gmt 0)



Hi

I did some testing and it seems that IE has problems with the <frameset rows="100%"> -tag. Somehow IE missed all definitions that followed this definition and since IE didn't find a frame called MAIN it opened a new browser window.

For me removing the above mentioned frameset definition and leaving just the frame definition did the trick.

So, try replacing the part:

<frameset rows="100%" >
<frame frameborder="1" name="SIDEBAR" src="framea.html">
</frame>
</frameset>

with:

<frame frameborder="1" name="SIDEBAR" src="framea.html">

and see what happens.

BTW, according to HTML 4.01 Specification end tags for frame elements (</frame>) are not necessary so you may want to leave those out too.

br,
Sami