PDA

View Full Version : IE throwing a syntax error but can't work out what the problem is



snape
07-24-2010, 02:36 PM
Hi,

For the life of me I can't work out what is wrong with the code here:http://www.spencercarpenter.co.uk/portfolioAppFiles/PortfolioItem03.php?item08=165&item012=161&item014=163&item016=162&fgh=showMe

I know it is somthing to do with the url and that it is a synax error but I really am stuck as I cant see what it is.

If anyone could help me resolve this I would be very grateful.

Thanks for any help.

Spencer

abduraooft
07-24-2010, 02:56 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

Not sure, but you've two DOCTYPEs in your page. STick with the Strict and remove the other.

RandomUser531
07-24-2010, 04:36 PM
window.document.location.href = www.spencercarpenter.co.uk/portfolioAppFiles/PortfolioItem03.php?item08=165&item012=161&item014=163&item016=162&fgh=showMe;The console clearly indicates an error on line 30 above. The value must be in quotes, and it's sufficient to assign to window.location,href or just location.href.