Results 1 to 5 of 5

Thread: how to remove this error

  1. #1
    Join Date
    Jul 2006
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow how to remove this error

    Hello!

    in my html page this error shows up:



    its strange because on line 2 there is only tag of <head>

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    We'll need a link to your page.

    And I see a backslash in that URL. There should never be a backslash in an URL.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The problem with IE's javascript error reporting as well as with many others is that they often report line numbers erroneously due to script instructions being executed as a part of an onclick event, a setTimeout() method and other things. IE's is particularly bad because, if a script is external, it will often report the line number on the external file but state the location as the html page that the script is being used on. Most other error reports do not have this additional handicap.

    The invalid character error often but not always can refer to the use of entities where the actual character is what is intended. These kinds of errors can just 'creep in' to code pasted to source improperly using a WYSIWYG editor such as FP or DW. One example of this would be having:

    Code:
    if(a&amp;&amp;b)
    where:

    Code:
    if(a&&b)
    is intended.

    Quote Originally Posted by Twey
    And I see a backslash in that URL. There should never be a backslash in an URL
    Usually that is correct but, if IE is being run locally on a page on the user's computer and that page was loaded directly into the browser for testing purposes, that type of slash appearing in the error report can be innocent enough.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by jscheuer1
    if IE is being run locally on a page on the user's computer and that page was loaded directly into the browser for testing purposes, that type of slash appearing in the error report can be innocent enough.
    And there would be no need to blank out the URL.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Twey

    Originally Posted by jscheuer1
    if IE is being run locally on a page on the user's computer and that page was loaded directly into the browser for testing purposes, that type of slash appearing in the error report can be innocent enough.
    And there would be no need to blank out the URL.
    That's not necessarily true - some folks might not want the directory structure of their HD revealed in any public fashion. But, it did occur to me just after my initial detailed response to the original question in this thread that I should have included the fact that yes, if the information I provided there is not enough to solve the problem, we would indeed need a link to a live version of the page (or the full code involved) to be of any specific help.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •