jqueryshadowbox

Unknown player for Shadowbox URL - jQuery


I am using the shadowbox.js for display the images of a gallery with this effect. Everything works fine. My problem is when I have an image with a link as a name, for example: http://www.fakedomainname.org/myimage1

I got an error: unknown player iframe

Does anyone know how can I solve this problem?


Solution

  • Shadowbox does not recognize the content if there is no .jpg / .png / .gif extension. This works however:

    Shadowbox.open({
        content:    'http://www.abc.com/myimage1',
        player:     "img" 
    });
    

    or define the player in the link:

    <a href='http://www.abc.com/myimage1' rel='shadowbox;player=img'>test</a>