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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Preload Frameset w/Message Question

    Hi, I am completely aware that Framesets are an outdated way of designing these days (I don't have time to redesign the site now), but I have a question:.

    Is there a way I can have a "Please wait.. Loading.." message of some sort on the "contents.html" frameset? It takes a while to load..

    Code:
    <html>
    
    <head>
    
    </head>
    
    <frameset rows="130,*" framespacing="0" border="0" frameborder="0">
    	<frame name="banner" scrolling="no" noresize target="contents" src="title.html">
    	<frameset cols="523,493">
    		<frame name="contents" target="main" src="contents.html" scrolling="auto">
    		<frame name="main" src="letters.html" scrolling="auto">
    	</frameset>
    	<noframes>
    	<body>
    
    	<p>This page uses frames, but your browser doesn't support them.</p>
    
    	</body>
    	</noframes>
    </frameset>
    
    </html>
    Thanks so much.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,151
    Thanks
    80
    Thanked 4,557 Times in 4,521 Posts
    Change to
    Code:
    		<frame name="contents" target="main" src="preload.html" scrolling="auto">
    And then have your "preload.html" page look like this:
    Code:
    <html>
    <head>
    <meta http-equiv="refresh" content="0;url=contents.html" />
    </head>
    <body>
    <h2>Please wait...</h2>
    </body>
    </html>
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,151
    Thanks
    80
    Thanked 4,557 Times in 4,521 Posts
    Oh, and if you can find a browser that doesn't support frames, still working and still active on somebody's machine, let us all know!
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #4
    Regular Coder
    Join Date
    Jul 2007
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wholly shmolly, that's genius.

    Thanks so much O.P. ..funny (second comment)!!


  •  

    Posting Permissions

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