The strange thing is that it works most of the time 95%, occasionally the browser goes into a mode where it loads the link in the top frame not the target frame. I need to restart the browser and then it works again!!! Though strangely my client checked the site at an internet cafe and he got the same problem.
This is the code for the frameset.
Code:
<frameset cols="*,700,*" framespacing="0" frameborder="0" border="0">
<frame name="left" src="blank.htm" scrolling="NO" border="0" frameborder="NO" framespacing="0" resize="no" noresize marginwidth="0" marginheight="0">
<frameset cols="107,*" framespacing="0" frameborder="0" border="0">
<frame name="menu" src="newmenu.htm" scrolling="NO" border="0" frameborder="NO" framespacing="0" resize="NO" noresize marginwidth="0" marginheight="0">
<frameset rows="100,*" framespacing="0" frameborder="0" border="0">
<frame name="header" src="newheader.htm" scrolling="NO" border="0" frameborder="0" framespacing="0" resize="no" noresize marginwidth="0" marginheight="0">
<frame name="main" src="Biography.php" scrolling="auto" border="0" frameborder="0" framespacing="0" resize="NO" noresize marginwidth="0" marginheight="0">
</frameset>
</frameset>
<frame name="right" src="blank.htm" scrolling="NO" border="0" frameborder="0" framespacing="0" resize="no" noresize marginwidth="0" marginheight="0">
</frameset>
and the menu html frame contains this
Very strange.
I know a lot of people don't like frames - I can see there disadvantages but I what I like (coming from an OO background) is that the site layout/appearance and content are seperated.
There is one (well two including the site css document) place (the index.htm that has the frameset) that defines the site appearance so changes are global without editing every page.
I must admit I'm not an HTML expert - so perhaps I'm missing a better way of doing it. How would you tackle this problem? Is there a way to embed one html document into another? (other than using a script to do it). I've never used IFrames - are they any better than regular frames?