Syntax Error in IE only, stumped.

Discussion in 'HTML & Website Design' started by puffyz, May 19, 2008.

  1. #1
    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?

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

    Thanks!!
     
    puffyz, May 19, 2008 IP
  2. ferman

    ferman Well-Known Member

    Messages:
    968
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #2
    what tool you are using?
     
    ferman, May 20, 2008 IP
  3. puffyz

    puffyz Guest

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its only in Internet explorer..

    I dont see any errors etc using firebug in firefox...

    Any tool suggestion? Thanks!
     
    puffyz, May 20, 2008 IP
  4. puffyz

    puffyz Guest

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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..
     
    puffyz, May 20, 2008 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Instead of giving us piecemeal clues, how about a link, so we can see the whole picture?

    cheers,

    gary
     
    kk5st, May 21, 2008 IP