Java Error on my website with IE

Discussion in 'JavaScript' started by Johnsnow77, Oct 16, 2011.

  1. #1
    Hello,
    When I open my website with IE it gives me the following error:
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; AskTbNRO/5.12.2.16749; .NET4.0C)
    Timestamp: Sun, 16 Oct 2011 11:36:29 UTC


    Message: 'null' is null or not an object
    Line: 80
    Char: 2
    Code: 0
    Do you have any ideas how to solve it :(
     
    Johnsnow77, Oct 16, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    1) That's Javascript, it has nothing to do with Java (which is an entirely different programming language).

    2) Check line 80. You're probably referencing something that doesn't exist (an id that you misspelled or trying to get the innerHTML of a text box, or something like that).

    Also you may be trying to reference something from the head, when it hasn't been created yet. Use onLoad or put that Javascript into the body.
     
    Rukbat, Oct 16, 2011 IP