Javascript in xhtml + dtd decleration = COMPLETELY BROKE - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Javascript in xhtml + dtd decleration = COMPLETELY BROKE

sarkiemarkiesarkiemarkie Posts: 89Member
Im using XSL and javascript and im trying to do the below function in javascript. The < is in place of a '<' becuase XSL gets confused if you do that.

The problem now is that it 'compiles' but when i open the page in IE, FF, SF.... none of the javascript works becuase now it is crashing at the < bit... and it says it is expected a ')'

ALL of this worked before I had put in the decleration for the XHTML transitional DTD... and now it suddenly doesnt work... i have tried absolutely everything and have been google'ing for days!!!! PLEASE HELP


[CODE] function init()

var height= screen.height;



} [/CODE]


[CODE]<?xml version="1.0" encoding="ISO-8859-1"?>



  • CyGuyCyGuy Posts: 312Member
    try all the proper open and close script tag stuff?

    // function FUN(){}
    // ]]>
    [green]WHAT you;see_is_what=you.get;[/green]
    -Russ aka DangeRuss
Sign In or Register to comment.