d.get("sb-container") is null

5 messages Options
Embed this post
Permalink
Levi Stanley

d.get("sb-container") is null

Reply Threaded More More options
Print post
Permalink
This is really odd.  It was working, and now it is giving this error.

I am using the jquery adapter.

Shadowbox.init({
    language: 'en',
    players:  ['iframe', 'qt', 'wmp', 'swf', 'flv']
});
seller

Re: d.get("sb-container") is null

Reply Threaded More More options
Print post
Permalink
I'm having this problem as well. Have you found a fix?
NiteRain

Re: d.get("sb-container") is null

Reply Threaded More More options
Print post
Permalink
Unfortunately, no I have not.
NiteRain

Re: d.get("sb-container") is null

Reply Threaded More More options
Print post
Permalink
I got it to work, by reinstalling everything.
andxyz

Re: d.get("sb-container") is null

Reply Threaded More More options
Print post
Permalink
In reply to this post by Levi Stanley
I started getting this error also, it was after I included jquery on the page above shadow box.

So I didn't bother trouble shooting, I know that shadowbox automatically searches for an adapter to use, so it must've switched to using the jquery adapter, which was failing for some reason.

so to fix it I set the adapter in the shadowbox init function to shadowbox's default, aka "base"

Shadowbox.init({
                                adapter:          "base", <--- I added this line and it fixed itself
                                language:         "en",
                                players:    ["swf", "flv", "iframe"],
                                overlayOpacity:   0.85,
                                initialHeight: 400,
                                initialWidth:  640,
                                autoplayMovies:   true
                        });