Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Frame refresh problem...

    My frameset when refreshed, resets all the pages back to the original ones that were loaded.
    Code:
    <!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/
    Code:
    <!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.
    Code:
    <SCRIPT type="text/javascript">
    function windowTitle()
    {
        parent.document.title="BasicInternalFrameTitlePane.SizeAction (Java 2 Platform SE v1.4.2)";
    }
    </SCRIPT>
    Last edited by sosuke; 01-21-2005 at 06:41 PM.

  • #2
    New Coder
    Join Date
    Nov 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ba-da-bump

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

  • #3
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sosuke
    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.

  • #4
    New Coder
    Join Date
    Nov 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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/

  • #5
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •