...

View Full Version : Frame refresh problem...



sosuke
01-21-2005, 05: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">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
</head>
<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>
</frameset>
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
However, when I used a framed site like:
http://java.sun.com/j2se/1.4.2/docs/api/

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Fri Jun 13 00:13:33 PDT 2003-->
<TITLE>
Java 2 Platform SE v1.4.2
</TITLE>
</HEAD>
<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)">
</FRAMESET>
<FRAME src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
<NOFRAMES>
<H2>

Frame Alert</H2>

<P>
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.
<BR>
Link to<A HREF="overview-summary.html">Non-frame version.</A>
</NOFRAMES>
</FRAMESET>
<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)";
}
</SCRIPT>

sosuke
01-24-2005, 09:02 PM
ba-da-bump

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

chilipie
01-24-2005, 09: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.

sosuke
01-24-2005, 09: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:
http://java.sun.com/j2se/1.4.2/docs/api/

AaronW
01-24-2005, 10: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum