Shadowbox is undefined (IE6 ISSUE?)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Shadowbox is undefined (IE6 ISSUE?)

programmerbyday
Hi,

Hopefully someone can steer me in the right direction.  I am getting a javascript error:

"Shadowbox is undefined" in IE6 when I try to initialize Shadowbox: -> window.onload = Shadowbox.init;

I am using shadowbox with YUI:
<head>
<link rel="stylesheet" type="text/css" href="shadowbox.css" />
<script type="text/javascript" src="yui-utilities.js"></script><script type="text/javascript" src="shadowbox-yui.js"></script><script type="text/javascript" src="shadowbox.js"></script></head> 


I do not get this error in IE7, FF, Safari, etc.  It only occurs in IE6 (v6.0.28).

Has anyone else stumbled upon this? I'm not sure what I am doing wrong.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Shadowbox is undefined (IE6 ISSUE?)

programmerbyday
Disregard my previous post...I figured out my problem...

IE6 did not like the way I was referencing the src path to shadowbox.js (while IE7, FF, Safari was ok with this):
<script type="text/javascript" src="/../icons/shadowbox/build/js/shadowbox.js"></script>