Problems with the "innerhtml" function of shadowbox

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Problems with the "innerhtml" function of shadowbox

Hello there.

I have a pretty weird problem and no clue how to solve it. Maybe you guys can help me out here.

Using the innerhtml function of shadowbox I accomplished to load the content of a certain div container into the shadowbox window. Like this:

For the href="#TEST1" shadowbox opens and displays the content of id="TEST1".

So far so good. Pressing the other ancor above href="#TEST2" shadowbox opens and does not display the contents of id="TEST2" but loads the complete website into the shadowbox window.

The weird thing is, that once shadowbox loads the website into the shadowbox window, both links work.

Does anyone see the mistake?