Click to See Complete Forum and Search --> : Problem with forced frames.


pcwr4it
12-03-2003, 10:25 AM
I have a short piece of code that makes the browser load the index page from my website with

From the index page

</head>
<! -- Frame Location -->
<script LANGUAGE="JavaScript">
<!--
if (top.location != self.location) {
top.location = self.location }
//--></script>

This load correctly in all browsers.
Problem is when I try and change the main loaded page via the menu, it loads the required page but takes it out of the frames page. Therefore loosing all menu links etc.

example of menu link

<a href="nextevent.html"
target="main" style="text-decoration: none"><strong>Next Event Jan '04</strong></a>

Happens in IE6 on my published pages. Works correctly in IE6 on local copy. Works in Netscape7.1 on local and published copies.

Question is, do I need to change the code for IE6 or put it somewhere else?

Thanks,
Patrick

kidrobot
12-03-2003, 04:36 PM
Ever try putting it in a frame?

Put those values in the top frame (index.html)


<FRAMESET ROWS="*,100%">
<FRAME SRC="BlankDocumentHere.html">
<FRAME SRC="main.html">
</FRAMESET>


This way it will always be in the topmost frame, and you
can load all _child frames inside of it. That way your
never going to lose it, since every page is being called
from inside the parent frame. Get it?

pcwr4it
12-04-2003, 02:58 AM
My main page calls 4 other pages.

Problem is when one of those pages (the menu page) calls another page to change one of the original pages, in IE6 it loads the new called page over all the others.

Works correctly in Netscape.

regards,
Patrick

pcwr4it
12-04-2003, 01:52 PM
Fixed.

Changed the label of one of the frames to "Right" instead of "Main" and load the pages from the menu links into "Right".

Strange how it use to work in IE5.

Thanks,
Patrick