Error 'bm' is null or not an object

Discussion in 'JavaScript' started by gorkreg, Apr 29, 2009.

  1. #1
    I am not an expert in javascript but I have a page where an error appears in the status bar:

    error: 'bm' is null or not an object
    line : 3
    code: 0
    char: 23522

    The gallery at the top has two javascript effects.
    The link to my page is here: http://www.gorkaregidor.com

    Any ideas on what could be happening?
     
    gorkreg, Apr 29, 2009 IP
  2. gorkreg

    gorkreg Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sorry, I forgot to say that this only happens in Explorer 6.
     
    gorkreg, Apr 29, 2009 IP
  3. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #3
    works fine in ie7, guess you fixed it.
     
    dimitar christoff, Apr 29, 2009 IP
  4. gorkreg

    gorkreg Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No, it's only in Explorer 6. In explorer 7 works fine.
     
    gorkreg, Apr 30, 2009 IP
  5. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #5
    /* IE7/IE8.js - copyright 2004-2008, Dean Edwards */

    <!--[if lt IE 7]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
    <![endif]-->
    <!--[if lt IE 8]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
    <![endif]-->

    as it's 6, it will load both the script for below ie7 and ie7 itself. and the latter one will fail.... you need to tweak your conditionals.

    p.s. just get rid of ie6, its 8 years old. its because people like you still support it that the evil does not die out... :(
     
    dimitar christoff, Apr 30, 2009 IP
  6. gorkreg

    gorkreg Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks Dimitar! How do you "tweak your conditionals"? Sorry but I don't know much about JavaScript.

    PS: I would love to get rid of IE6 forever and just ignore it. Whoever is using it, won't be able to see the page properly and that's it. Unfortunately some of these "whoever" could be a client so I really have to care for Explorer 6 as long as people still use it. And there is a bunch of them out there. :-(
     
    gorkreg, Apr 30, 2009 IP
  7. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #7
    <!--[if lte IE 6]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
    <![endif]-->
    <!--[if IE 7]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
    <![endif]-->

    basically first one needs to run on ie6 and below only whereas the second one needs to run on ie7 only. or something like that
     
    dimitar christoff, May 3, 2009 IP
  8. gorkreg

    gorkreg Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks a million! No "error on page" anymore.
     
    gorkreg, May 3, 2009 IP