View Full Version : Frame refresh problem...

01-21-2005, 06:38 PM
My frameset when refreshed, resets all the pages back to the original ones that were loaded.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<frameset rows="90,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="topFrame.htm" name="topFrame" scrolling="NO" noresize>
<frameset rows="*" cols="215,*" frameborder="NO" border="0" framespacing="0">
<frame src="../menu/show.htm" name="menu" scrolling="NO" noresize>
<frameset rows="*,25" frameborder="NO" border="0" framespacing="0">
<frame src="splash.htm" name="canvas">
<frame src="bottomFrame.htm" name="bottomFrame" scrolling="NO" noresize>
However, when I used a framed site like:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!-- Generated by javadoc on Fri Jun 13 00:13:33 PDT 2003-->
Java 2 Platform SE v1.4.2
<FRAMESET cols="20%,80%">
<FRAMESET rows="30%,70%">
<FRAME src="overview-frame.html" name="packageListFrame" title="All Packages">
<FRAME src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
<FRAME src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">

Frame Alert</H2>

This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
Link to<A HREF="overview-summary.html">Non-frame version.</A>
<script language="JavaScript" src="/js/omi/jsc/s_code_remote.js"></script></HTML>
When I refresh, the last page I was on is loaded properly. What am I doing wrong here?

Hell, their frameset ever settings the title to the loaded pages title, how can I do that?!

Edit: I found how how they reset the title on every page.

<SCRIPT type="text/javascript">
function windowTitle()
parent.document.title="BasicInternalFrameTitlePane.SizeAction (Java 2 Platform SE v1.4.2)";

01-24-2005, 10:02 PM

still haven't been able to find a solution...

01-24-2005, 10:19 PM
My frameset when refreshed, resets all the pages back to the original ones that were loaded.

This is (to the best of my knowledge) unavoidable. If you want to use frames, this is going to happen. My advice is, don't use frames. They are unaccessible, impossible to bookmark and highly impractical.

01-24-2005, 10:53 PM
This is one time I can't get around them unfortunantly. :)

I am just trying to figure out how the Sun Java Docs can do it right?

check it out:

01-24-2005, 11:01 PM
My guess is that they use Javascript to store the state of the frameset in a cookie, then when the page is reloaded, the cookie is read and all the settings are re-applied.