XHTML + JAVASCRIPT = WORKING + DTD = NOT WORKING - Programmers Heaven

Howdy, Stranger!

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

Categories

XHTML + JAVASCRIPT = WORKING + DTD = NOT WORKING

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...

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


JS CODE

[CODE] function init()
{



var height= screen.height;

if(height<350)
{
document.getElementById('contentstyle').style.fontSize="16px";
document.getElementById('title').style.fontSize="18px";
document.getElementById('inlineimage').style.width="50%";

}


} [/CODE]


XHTML DECLERATION

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







............[/CODE]

Comments

Sign In or Register to comment.