View Full Version : Error 'bm' is null or not an object
gorkreg
Apr 29th 2009, 6:21 am
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 29th 2009, 6:26 am
Sorry, I forgot to say that this only happens in Explorer 6.
dimitar christoff
Apr 29th 2009, 4:34 pm
works fine in ie7, guess you fixed it.
gorkreg
Apr 30th 2009, 1:09 am
No, it's only in Explorer 6. In explorer 7 works fine.
dimitar christoff
Apr 30th 2009, 4:50 am
/* 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... :(
gorkreg
Apr 30th 2009, 11:13 am
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. :-(
dimitar christoff
May 3rd 2009, 1:50 am
<!--[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
gorkreg
May 3rd 2009, 3:45 am
Thanks a million! No "error on page" anymore.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.