PDA

View Full Version : Invalid Character...



DarkBlood
October 7th, 2007, 18:19
JavaScript Complains that there is an invalid character on line 2, character 1 in the following code.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>The Index</title>
<link rel="stylesheet" href="main.css" />
<script type="text/javascript" src="scripts/curvyCorners/rounded_corners_lite.inc.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>

<body><div id="wrapper2">
<div id="wrapper"><div id="nav"><div class="innerDIV">
<a href="index.htm">Home</a>
</div></div>
<div id="affiliates"><div class="innerDIV">
<b>Affiliates</b><br /><br />
Affiliate 1<br />
Affiliate 2<br />
</div></div>
<div id="content"><div class="innerDIV">
<div class="message">Welcome</div><br /><br />
New layout, tons of pages missing. I'll get right on it folks! Just, be patient and I'll have a bunch of it up in no time... I hope anyway.
</div></div>
</div></div>
</body>
</html>

JavaScript I use is below:


window.onload = function() {
settings = {
tl: { radius: 10 },
tr: { radius: 10 },
bl: { radius: 10 },
br: { radius: 10 },
antiAlias: true,
autoPad: false
}

/*
Usage:

newCornersObj = new curvyCorners(settingsObj, classNameStr);
newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
*/

divObj1 = document.getElementById("content");
divObj3 = document.getElementById("affiliates");
divObj4 = document.getElementById("nav");

newCornersObj = new curvyCorners(settings, divObj1, divObj3, divObj4);
newCornersObj.applyCornersToAll();
}

Jan
October 8th, 2007, 00:39
Closed as requested.