1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

IE says there is an invalid character, but I cannot find it ...

Discussion in 'HTML & Website Design' started by cre8ive, Dec 19, 2007.

  1. #1
    I get the following message as I test my website in IE.

    Line: 202
    Char: 1
    Error: Invalid character
    Code: 0
    URL: [my site's url]

    But the line 202 is the following:
    
                    <li onclick="#">Events</li>
    
    Code (markup):
    There is nothing in here really. Why is IE giving me this error?
     
    cre8ive, Dec 19, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Which site is giving you the error?
     
    Dan Schulz, Dec 20, 2007 IP
  3. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,825
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
    #3
    Try it using Firefox may give you more details, a lot of times, I have code errors which is very vague in IE or does not appear at all, but is clearly shown in Firefox.
     
    wisdomtool, Dec 20, 2007 IP
  4. Dvae

    Dvae Banned

    Messages:
    299
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    is your looking for error, its not sometimes placed on the line where the error message was, e.g.

    try looking for some mistakes before Line 202
     
    Dvae, Dec 20, 2007 IP
  5. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It's better if you give us a chunk of code between lines 190-210, it's hard for us to help you with that pieces of information. And just like what dvae said, line 202 is not always line 202, maybe IE read it as line 202 but with your text editor with word wrapping on, it's not.
     
    Dondon2d, Dec 20, 2007 IP
  6. cre8ive

    cre8ive Peon

    Messages:
    295
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The following is from line 185 to line 207:

    <body onload="startPage(); startIt();">
        <div id="screen">
            <div class="emblem" style="position: absolute; height: 70px; width: 130px; z-index: 100;">
                <img alt="" src="images/tmz_emblem.gif">
            </div>
    
            <div class="tmz" style="position: absolute; height: 33px; width: 265px; z-index: 100;">
                <img alt="" src="images/tmz.gif">
            </div>
    
            <div class="navigation" style="position: absolute; width: 140px; z-index: 100;">
                <ul id="idList">
                    <li onclick="movePage('home');">Home</li>
                    <li onclick="movePage('profile');">Profile</li>
                    <li onclick="movePage('bites');">Bites</li>
                    <li><a href="models.html">Models</a></li>
                    <li><a href="calendar.html">Calendar</a></li>
                    <li onclick="#">Events</li>
                    <li onclick="movePage('media');">Media</li>
                    <li onclick="movePage('press');">Press Releases</li>
                    <li onclick="movePage('application');">Online Application</li>
                </ul>
            </div>
    Code (markup):
    BTW, the site in question is this.

    Thanks in advance.
     
    cre8ive, Dec 20, 2007 IP
  7. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #7
    http://validator.w3.org/check?uri=h...(detect+automatically)&doctype=Inline&group=0

    You can add a meta tag with the charset listed. Then you save your html file in that charset. Lastly, check the charset on the hosting server. They all need to match each other. When you don't set one on anything, the validator went to utf-8. If you set one on the server and a different one in the meta tag, the server will override (and the two won't match up so for some people and machines there will be problems with certain characters).
     
    Stomme poes, Dec 21, 2007 IP
  8. cre8ive

    cre8ive Peon

    Messages:
    295
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Interesting ...

    I guess I kind of understand what you're saying, but I need to spend a little more digesting this information ...

    Thanks for your help ...
     
    cre8ive, Dec 21, 2007 IP