Javascript error in IE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • colinod
    Contributor
    • Nov 2007
    • 347

    Javascript error in IE

    I cant figure our why my site has pages that generate a Javascript error on a page but when the page is refreshed the error dissapears

    www.yaketyyak.c o.uk

    any of the individual persons pages on the site generate this error but i cant figure out why

    Can anyone help????
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what is the error actually (I don't have IE, so I can't tell)?

    though not IE related, but "../deluxe-menu.files/dmenu.js" is not a javascript file.
    all ; in the conditional comment JS are missing.

    regards

    Comment

    • colinod
      Contributor
      • Nov 2007
      • 347

      #3
      Hi it just says syntax error on line 2 character 1 code 0

      hope that helps tried putting the missing ; in the statement and that did not help

      Comment

      • colinod
        Contributor
        • Nov 2007
        • 347

        #4
        Hi thatnks for your help, making me look at the javascript line helped it should not have pointed to ../deluxe-menu.files should have just been deluxe-menu.files

        that has cured the problem

        Thanks again

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          added tips

          got it through Firefox' "Error Panel" (or whatever it is called in english...)

          Originally posted by colinod
          tried putting the missing ; in the statement and that did not help
          it's generally considered "good coding practice" to finish each command with a ;. other programming languages will throw an error if the closing semi-colon is missing. btw. enclosing single line code blocks in { } is not necessary, but it can improve readability.

          Comment

          Working...