SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    May 2001
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing Doctype from Strict to Transitional stops script

    Hello,

    1- I have a Tabs list (Services/Solutions/Internal...) in below website which has been done using Javascript.

    http://reorex.com/tt/en/indexa.php

    Now if I change the Doctype from Strict to Transitional the javascript ceases to work correctly (and I was not able to find why).

    See here:

    http://reorex.com/tt/en/

    2- I need the Transitional doctype because my language menu does not work with Strict!!! and I guess fixing the Javascript might be easier than that.

    What is the problem? What should I do to avoid such problems? (I guess I prefer strict type XML documents).

    Thank you very much for your help.

    Regards

  2. #2
    Non-Member Kalon's Avatar
    Join Date
    Aug 2010
    Location
    At my computer
    Posts
    2,012
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I put both those links through the w3c validator and it tells you exactly what the problems are.

    What is the problem? What should I do to avoid such problems? (I guess I prefer strict type XML documents).
    Validating your code often solves a lot of problems

  3. #3
    SitePoint Zealot
    Join Date
    May 2001
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks.

    Validating second link ( http://reorex.com/tt/en/ ) did not fix the problem (you can see the page passes the test now).

    Validating the first link ( http://reorex.com/tt/en/indexa.php ) crippled the working script and I revived it to the previous version (in case someone wants to see the working script).

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,810
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It would be better to fix the language menu to work with HTML 4 rather than trying to patch the JavaScript to work with HTML 3.2
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

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