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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2012
    Posts
    100
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Multiple questions dealing with frames

    On the main index page for the site I am using
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
       "http://www.w3.org/TR/html4/frameset.dtd">
    for the "sub" pages that are shown in the various frames what doc type should I use Frameset or Transitional?

    Also with dealing with the "sub" pages. What is the best alternative to reload the page with the parent frame. (the sub pages have no navigation/little navigation)
    The following code worked when the file extentions were .html but I cant seem to get the script to work when the page extentions are .php
    Code:
    <script LANGUAGE="JavaScript">
     <!--
     function framecheck()
            {var parentframe = 'fr_index.html';
    
            if (parent.location.href == self.location.href)
            	{var current = window.self.location.pathname;
                 window.location.replace (parentframe + '?' + current);
                 }
            };
     //-->
    </script>

    Thanks

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,620
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Quote Originally Posted by Ctechinfo View Post
    for the "sub" pages that are shown in the various frames what doc type should I use Frameset or Transitional?
    Strict.

    Quote Originally Posted by Ctechinfo View Post
    Also with dealing with the "sub" pages. What is the best alternative to reload the page with the parent frame. (the sub pages have no navigation/little navigation)
    The best solution since you mention PHP would be to get rid of the long obsolete frames completely and incorporate the navigation into each page using a PHP include statement.

    the transitional and frameset doctypes are intended to support web pages on web sites that predate the 1997 introduction of HTML 4 that have yet to finish transitioning from HTML 3.2 to HTML 4.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Regular Coder
    Join Date
    Sep 2012
    Posts
    100
    Thanks
    5
    Thanked 3 Times in 3 Posts
    In the grand scheme of things I am planning on xhtml/php/mysql upgrades for the site, but right now just getting the site back online with minimal tweaks.

    What did exist for doc types was:
    Code:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    missing </> tags, etc

    With any luck I will be able to afford to renew the host come march.


  •  

    Posting Permissions

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