Forum Moderators: open

Message Too Old, No Replies

frames causing me a headache

www.measure-up.co.uk/www.dip.demon.co.uk

         

loopylee

2:07 am on Mar 19, 2005 (gmt 0)

10+ Year Member



Can somebody test this link for me:

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

A friend has asked me to sort out this frame based website as he encountered problems after having to move it from one hostname location to a new hostname. I have uploaded it to the location above only temporarily to test it

The problem was that the content frame (green) on left was supposed to open up links in the main window on right. I thought i had fixed the problem by ridding some MS Word gunk which was in the code (this was obviously how he had coded/updated it.)
It seems to work ok on my main PC (ie6) now, but i have noticed that when i go to open it on my other pc thru a local ethernet connection, which also has ie6 but has a smaller monitor, it doesnt function properly at first. Instead the links open up in completely new windows.

And then, when i close the browser window down and open up another one it seems to work fine again? Its starting to do my head in and i wish i never said id help him... any advice would be appreciated.

thanks

[edited by: tedster at 2:17 am (utc) on Mar. 19, 2005]

tedster

2:27 am on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume the frame that holds the loaded pages has been assigned a name in the frameset document, or else it would never work properly. For the purposes of this discussion, let's say it's name="content".

Similarly, I assume that the links to change this content frame have a target="content" attribute. Or else, once again, they would never work right.

...it doesnt function properly at first. Instead the links open up in completely new windows.

This is a sign that there is no frame or window in the loaded version of the frameset that is named "content"

...when i close the browser window down and open up another one it seems to work fine again

So the correct code is there to be seen. The first thing I would check is the browser cache - when you first open you may be loading an old version of the pages.

loopylee

2:31 am on Mar 19, 2005 (gmt 0)

10+ Year Member



With regards to my problem above. I was unable to post links so im having to include some code here for somebody to look at.

on the index page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head><base target="main">
<link rel=File-List href="../index_files/filelist.xml">
...//blah blah blah
<meta content="none, default" name="Microsoft Border">
</head>

<frameset cols="150,1*">
<frame name=contents
src="index_files/contents.htm">
<frame name=main
src="index_files/main.htm">
</frameset>
<noframes>
<body lang=EN-GB style='tab-interval:36.0pt'>
<div class=Section1>
<p>This page uses frames, but your browser doesn't support them.</p>
</div>
</body>
</noframes>
</html>

loopylee

2:38 am on Mar 19, 2005 (gmt 0)

10+ Year Member



on the contents page:
...ditto stuff
<head><base target="main">
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./contents_files/filelist.xml">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>simon</o:Author>
<o:Template>Normal</o:Template>
<o:LastAuthor> </o:LastAuthor>
<o:Revision>5</o:Revision>
<o:TotalTime>71</o:TotalTime>
<o:Created>2003-11-09T16:35:00Z</o:Created>
<o:LastSaved>2005-03-13T17:06:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>177</o:Words>
<o:Characters>1014</o:Characters>
<o:Lines>8</o:Lines>
<o:Paragraphs>2</o:Paragraphs>
<o:CharactersWithSpaces>1245</o:CharactersWithSpaces>
<o:Version>9.2720</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:Zoom>75</w:Zoom>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:536871559 0 0 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:white;}
a:link, span.MsoHyperlink
{color:white;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:white;
text-decoration:underline;
text-underline:single;}
p
{margin-right:0cm;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:white;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=green lang=EN-GB link=white vlink=white style='tab-interval:36.0pt'
alink="#ffffff">

<div class=Section1>

<p><a href="link1.htm"><br>
<strong><span style='font-size:7.5pt;font-family:Verdana'>LINK ONE</span></strong></a></p>

.... more links etc etc

loopylee

2:39 am on Mar 19, 2005 (gmt 0)

10+ Year Member



note that i have used <base target="main"> tags on both files...so this should take care of that right?

loopylee

2:49 am on Mar 19, 2005 (gmt 0)

10+ Year Member



tedster,
i think this could be a cache issue just like you said. I emptied my history and deleted all temporary files and cookies from ie and it loaded up first time after that.
Only problem is will a user need to do this everytime they reload this website. Not all users are going to know this including the bloke im doing this for. I need him to know that i have fixed it but if it doesnt work for him on his own PC every time, he wont think its working!

tedster

3:06 am on Mar 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No other visitors should have the development versions in their cache - so you'll be fine.