novellino
novellino

Reputation: 1069

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?

Upvotes: 2

Views: 5175

Answers (1)

Willem
Willem

Reputation: 5404

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>

Upvotes: 4

Related Questions