Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadowbox is not defined #45

Open
Prozac2000 opened this issue Sep 6, 2015 · 5 comments
Open

Shadowbox is not defined #45

Prozac2000 opened this issue Sep 6, 2015 · 5 comments

Comments

@Prozac2000
Copy link

Shadowbox is not defined error when i call Shadowbox.init()
why?

the code:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento senza titolo</title>
<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
<link href="shadowbox/shadowbox.css" rel="stylesheet" type="text/css">
</head>
<body>
<a rel="shadowbox" href="promo.jpg">Clicca qui</a>
</body>
</html>
<script language="javascript">

    Shadowbox.init();
    Shadowbox.open(img, { player: 'iframe' });

</script>
@stevensmith007
Copy link

Same issue here.

@emnbdx
Copy link

emnbdx commented Nov 12, 2015

because it's shadowbox not Shadowbox

@chatis
Copy link

chatis commented Jan 3, 2016

Not working in lowercase too

@jcf2167
Copy link

jcf2167 commented Jan 8, 2016

Did anyone ever end up finding a solution to this problem? I have the same situation.

@hrkisk
Copy link

hrkisk commented Jan 28, 2016

old Shadowbox.init seems not working anymore. there is no "init" method in default shadowbox.js file, there is initialize byt that is not working when call instead of old "init".

then i tried to use this:
shadowbox({handleOversize:"drag", language: 'en', players: ['html','iframe']});

it worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants