shadow box help
- Started
- Last post
- 13 Responses
- Claymantis
I can't seem to figure out why my shadow box wont display my html in an iframe.
Click get yours new tab - http://thislittlepig.ca/new/
The info just wont display.I've been told to use fancy box. but I'm so close with this and not that great with code. If someone could help me, it would be amazing!
Thanks.
- ideaist0
Getting 3 errors in Google Chrome's Console:
Unsafe JavaScript attempt to access frame with URL http://thislittlepig.ca/new/ from frame with URL
?badge=0&api=1&player_id=video1. Domains, protocols and ports must match.&
Unsafe JavaScript attempt to access frame with URL http://thislittlepig.ca/new/ from frame with URL
?badge=0&api=1&player_id=video1. Domains, protocols and ports must match.&
Uncaught unknown player iframe shadowbox.js:8
- http://ninjaforge.co…ideaist
- Vimeo link on their -> http://ninjaforge.co…ideaist
- Same software?ideaist
- Claymantis0
whats does thats mean?
- It seems it's trying to open a vimeo video rather than an iFrame; "Uncaught unknown player iframe..."ideaist
- hmm i dunno.Claymantis
- ideaist0
Again, FancyBox is much cleaner -> http://fancyapps.com/fancybox/
1. Go to "Instructions" and follow them:
http://fancyapps.com/fancybox/#i…2. Use their "iFrame" example code:
<a class="various" data-fancybox-type="iframe" href="/demo/iframe.html">Iframe</a>3. Tweak as you see fit.
Don't be overwhelmed by development, just read it through and implement it.
; )
- Claymantis0
I know I will probably use it for the next project... just thought it would be easier to fix what I have... its already set up...
- Ok, so you're using http://www.shadowbox… ?ideaist
- yup..
Claymantis - You've downloaded the contents with all options selected on that page?ideaist
- yup - it opens - but wont display anythingClaymantis
- <a rel="shadowbox" href="mywebsite.html">iframe</a> is the proper ordering...ideaist
- Your class or the ordering MAY be throwing it off...ideaist
- I think i got it to work. thanks alot man!!Claymantis
- ideaist0
A little styling and you're good brother; good hustle!
QBN pre-holiday miracle...
; )
- Claymantis0
haha thanks man
- dbloc0
works form me....bring that close button to the top
- dbloc0
and give the popup a size
- Claymantis0
Cant seem to change the size... thought it was #sb-container
but doesnt seem to work
- dbloc0
rel="shadowbox;height=140;width...
- dbloc0
rel="shadowbox; height=140; width=120"
- Claymantis0
amazing thanks man.