Forum Moderators: open

Message Too Old, No Replies

Frameset blows up on some browsers after clicking a link

targetted page loads on top, but shows HTML code

         

pmarcj

6:12 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



I've created a page using frames, however, depending on the browser used, the frames either or don't.

Basically, it's 2 columns, with the left column having two rows. The upper row ("pagelist") link displays thumbnail
images in the lower ("page") portion, when when clicked on, display the full image in the body (main column on
the right).

Results:

Using IE6 on one PC, frames initally work, but as soon as I click on a link in "pagelist", the frame disappears
and instead, the html for the page it references it displayed.
However, other internet web pages using the same frame design work correctly.

Using Opera 6.03 (emulates IE5.0), everything works correctly (for the local & internet version of the pages).

On another PC:
Using IE6, everything works correctly.
Using Netscape Communicator 4.77, same problem as above.

I've also check the IE6 settings on both PCs, seem to be the same. First PC is probably a bit more patched with
security from Microsoft, but they are not very far apart.

Also, on the first PC, using FrontPage 2000, and running the FP web server, works fine in FP.

Code:
--------------------------------------------------------------------------------
category-frame.htm:

<html><head><title>Category</title>
<META NAME="keywords" CONTENT="Category" >
<META name="description" CONTENT=" Category" >
<META NAME=" AUTHOR" CONTENT="category-ind.htm">
<META NAME=" COPYRIGHT" CONTENT="category-ind.htm">
<META NAME=" CLASSIFICATION" CONTENT="category-ind.htm">
<FRAMESET COLS="200,*" BORDER=5>
<FRAMESET ROWS="100,*">
<FRAME NAME="pagelist" SRC="category-ind.htm" BORDER=5 SCROLLING=Auto>
<FRAME NAME="page" SRC="travel-1.htm" BORDER=5 SCROLLING=Auto>
</FRAMESET>
<FRAME NAME="body" IMG SRC="images/PICT0033p.jpg" BORDER=5>
</FRAMESET>
<NOFRAMES>
<BODY>

<H1>Categories</H1><p><center>

<ul>
<a HREF="travel-1.htm" TARGET="page">Travel Page 1</a><br>
<a HREF="icar-1.htm" TARGET="page">Import Car Show 1</a><br>
<a HREF="ultimate-1.htm" TARGET="page">Ultimate Page 1</a><br>

</BODY></NOFRAMES></HTML>
--------------------------------------------------------------------------------
category-ind.htm

<META NAME=" CLASSIFICATION" CONTENT="category-ind.htm"></head><center>
<BODY>
<B>Category Samples</B></h1></center><ul>

<a HREF="travel-1.htm" TARGET="page">Travel 1</a><br>
<a HREF="icar-1.htm" TARGET="page">Import Car Show 1</a><br>
<a HREF="ultimate-1.htm" TARGET="page">Ultimate Page 1</a><br>

<br><a HREF="photo.html" TARGET=_top>Main Page
</BODY></HTML>
--------------------------------------------------------------------------------

Any idea why this isn't working properly?

Thanks in advance.

tedster

8:56 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld.

as soon as I click on a link in "pagelist", the frame disappears
and instead, the html for the page it references it displayed.

Because of this I would suspect something in the code for the page being referenced. either icar-1.htm and/or ultimate-1.htm. The basic frameset structure looks fine. And as you said, it's working in other situations.

Debug Step One: validate the HTML of all pages.

pmarcj

11:13 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



The code for all three-1 pages is the same. They do work correctly individually.

You can try it at [bleep!]

Here's the code for travel-1.htm
<html><head><title>Travel Page # 1</title>
</title></head>
<body><font size=2><strong>Travel Page 1</strong></font>

<TABLE>
<tr><td><a HREF="images/PICT0033p.jpg" TARGET="body">
<IMG SRC="images/PICT0033p.jpg" align=left hspace=2 vspace=2 height= 50 width = 50></a></td>
<td><font size= 2><strong>
pict0033<br>
March 19/03<br>
Havana, Cuba<br>
</font></strong></td></tr>

<tr><td><a HREF="images/PICT0082p.jpg" TARGET="body">
<IMG SRC="images/PICT0082p.jpg" align=left hspace=2 vspace=2 height= 50 width = 50></a></td>
<td><font size= 2><strong>
PICT0082<br>
March 18/03<br>
Havana, Cuba<br>
</font></strong></td></tr>

<tr><td><a HREF="images/PICT0171p.jpg" TARGET="body">
<IMG SRC="images/PICT0171p.jpg" align=left hspace=2 vspace=2 height= 50 width = 50></a></td>
<td><font size= 2><strong>
PICT0171<br>
March 21/03<br>
Havana, Cuba<br>
</font></strong></td></tr>

<tr><td><a HREF="images/PICT0040p.jpg" TARGET="body">
<IMG SRC="images/PICT0040p.jpg" align=left hspace=2 vspace=2 height= 50 width = 50></a></td>
<td><font size= 2><strong>
PICT0040<br>
March 18/03<br>
Havana, Cuba<br>
</font></strong></td></tr>

</TABLE>
<Table><TR>
<tr><TD align=middle><a HREF="travel-2.htm">Next Page</a></TD>
</TR></TABLE></BODY></HTML>

[edited by: rcjordan at 11:15 pm (utc) on June 13, 2003]
[edit reason] sorry, no specific references to sites. [/edit]

tedster

11:32 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is no </head> tag in your frameset document. I didn't catch that just by reading through the code the first time.

Run your pages through a validator [validator.w3.org] to catch that kind of thing. I think you may have other unclosed tags.

Also, your <noframes> section is misplaced, but I doubt that this is causing your problem. The correct placement is INSIDE the <frameset></framset> tag:

<frameset>
<frame></frame>
<noframes></noframes>
</frameset>

pmarcj

5:15 am on Jun 14, 2003 (gmt 0)

10+ Year Member



Thanks tedster, that did the trick. Also, thanks for the really quick response!

PS. Didn't know not to put specific references to sites.