'null' is not null or an object

Discussion in 'JavaScript' started by cre8ive, Jan 22, 2008.

  1. #1
    I'm getting the following error message in IE.
    As far as I see, the page is working fine, but it bothers me a bit. This thing might not work at all on a certain platform. Error points at the following location:

    Line: 664
    Char: 2

    And ...
    	$("kwicks").addEvent("mouseleave", function(event) {
    		var o = {};
    		kwicks.each(function(kwick, i) {
    			o[i] = {height: [kwick.getStyle("height").toInt(), szNormal]}
    		});
    		fx.start(o);
    	})
    Code (markup):
    The first line in the code above is Line 664. What is IE complaining about? How can I fix this?
     
    cre8ive, Jan 22, 2008 IP
  2. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Shouldn't it be $("#kwicks")?
     
    MMJ, Jan 23, 2008 IP
  3. cre8ive

    cre8ive Peon

    Messages:
    295
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, it works either way. But either way, I get the same error message ... :(
     
    cre8ive, Jan 23, 2008 IP
  4. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Its working on firefox?


    Please post all your code.
     
    MMJ, Jan 23, 2008 IP