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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript and <!DOCTYPE

    I have a problem with customer website. My script creates an Auto-Greet that overlays the page, displays in the lower left of the browser and remains visible as the user scrolls the page.

    My Mockup the customer home page. This is the desired action.
    http://www.clientconnexion.com/mock/dallasvwcom.html

    Customer website: (undesired action)
    http://www.vwoncentral.net/

    The only difference is that my customers does not declare a .dtd document.
    They have a <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">.

    On my mock-up, I declare a .dtd document and my script works.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Question: I'm trying to figure out a way in javacript to dynamically change the <!DOCTYPE, is this possible?

  • #2
    New Coder
    Join Date
    May 2009
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts
    While the doctype is available to javascript from the header, it is read only. your last chance to change this is on the server side before any headers are sent.


  •  

    Posting Permissions

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