Forum Moderators: open

Message Too Old, No Replies

Syntax Error in IE only, stumped.

         

brandon0401

3:12 am on May 21, 2008 (gmt 0)

10+ Year Member



Hey guys hoping someone can help me debug this. Site developing
is showing a browser error only in IE, any version. Its a simple

Line: 2
Char: 1
Error: Syntax Error
Code: 0
URL: url address

in that area have at top of page is below, seems moving spacing doesnt matter, just always gives that line. Here is what have in code there:

<!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">

Any ideas on what this is from or how I can fix/debug? Any other tools than firebug? This is only in IE...

I think I have narrowed it down to a area, would just because things are "" quoted cause this? Wouldnt think so...

Thanks!

venti

4:05 am on May 21, 2008 (gmt 0)

10+ Year Member



Looks similar to ours:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

I use HTML Tidy (though it's a FF addon) in serial mode which seems to catch *much* more (and in more detail) than FireBug.

brandon0401

6:13 am on May 21, 2008 (gmt 0)

10+ Year Member



ive narrowed it down when I take out this script, the error goes away but the script is fully functional in both IE and firefox and doesnt throw error in firebug or html tidy..

<script type="text/javascript">
if ("16261"=="") {
lookupID("","","","162","162","16261",2); // no cookie. lookup idsave and set (2).
updatedisplay("162");
} else {
var qform = document.getElementById("qform");
updatedisplay("");

lookupID(qform.miles.value,"","","162","162","16261",0); // cookie lookup
}
</script>

I am stumped..

daveVk

6:55 am on May 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could it be this code is executing before page loaded, or whatever file lookupID if defined in is loaded ? Perhaps timing difference between browsers