Referencing Shadowbox.js Kills Page

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

Referencing Shadowbox.js Kills Page

rebolyte
I'm really excited about using Shadowbox, but I don't quite have it working yet. I'm trying to use it with MooTools, and if I reference shadowbox.js in my page, my page stops working. I have a lot of other things that load and/or function through MooTools, but it all works until I reference the script. Here's the code:

Works:
<link rel="stylesheet" href="style/default.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" href="style/shadowbox.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script src="js/mootools-1.11_compressed.js" type="text/javascript" charset="utf-8"></script>

Doesn't Work:
<link rel="stylesheet" href="style/default.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" href="style/shadowbox.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script src="js/mootools-1.11_compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="js/shadowbox-mootools.js" type="text/javascript" charset="utf-8"></script>
<script src="js/shadowbox.js" type="text/javascript" charset="utf-8"></script>

I haven't gotten far enough to even try running the Shadowbox.init(), but here's the code I'll eventually be using for that:

window.addEvent('domready', function(){
        ...
        Shadowbox.init()
        ...
});

Ideas? Thoughts? Pointers? I would very much appreciate any assistance. TIA!
Reply | Threaded
Open this post in threaded view
|

Re: Referencing Shadowbox.js Kills Page

rebolyte
Nevermind; It appears that there's something in my full page that's throwing it off. A test in a separate page worked.

Has anyone run into conflictions like this before? I'm still at a loss as to where to look for where things are going wrong with MooTools in my full page.