html player doesn't work

8 messages Options
Embed this post
Permalink
effeksys

html player doesn't work

Reply Threaded More More options
Print post
Permalink
(This post was updated on )
I use the actually shadowbox version (3.0b).

Init in head:
<script type="text/javascript">
Shadowbox.init({
    language: 'de-DE',
    players:  ['img', 'html', 'swf'],
	flashParams: {bgcolor:"#ffffff"},
	animateFade: 'true',
	fadeDuration:	'0.35'
});

And this is a part from the body range:
<div id="left">		
		<ul>
			<li><a rel="shadowbox;player=html" href="http://www.google.de" title="zur Kasse"><img src="img/kasse.png" width="138px" height="135px" alt="Kasse"><br>zur Kasse / Warenkorb</a></li>
			<li><img src="img/librarian.jpg" width="240" height="452" alt="Librarian"></li>
		</ul>
</div>

The swf player works fine, but the html player doesn't work. If i write: rel="shadowbox" the screen greyed out, but no window opens!? If i try: rel="shadowbox;player=html" opens a window, but no content is visible. Instead show the Shadowbox the url from href!?

see here: http://fx-s.de/virtuellerBuchladen/ (click on "zur Kasse / Warenkorb")

Many thanks for help!

Tested wih Safari 4 and Firefox 3.0.11
effeksys

Re: html player doesn't work

Reply Threaded More More options
Print post
Permalink
sample page added
Mike Taylor

Re: html player doesn't work

Reply Threaded More More options
Print post
Permalink
I'm getting exactly the same behaviour with an external HTML link --- screen darkens, but no window opens.

Mike
Christina

Re: html player doesn't work

Reply Threaded More More options
Print post
Permalink
In reply to this post by effeksys
I have the same problem as stated above.  Any help with this?
Webwalkers

Re: html player doesn't work

Reply Threaded More More options
Print post
Permalink
In reply to this post by effeksys
I have the same problem with inline content within a div (IE7, FF3.0, Safari 3.1 for Windows). Screen darkens but no content displayed. If anyone has found a solution, please help us all out!
andrewteg

Re: html player doesn't work

Reply Threaded More More options
Print post
Permalink
You need the iframe player to "play" non-HTML pages ... the html player only seems to get HTML and spit it back out so dynamic pages cannot be loaded with it. So just add the iframe player to your img, html, swf list and you'll be fine!

Note you can then take off the players=html on the actual link as well as Shadowbox figures it out for you once you add the iframe player.
andrewteg

Re: html player doesn't work

Reply Threaded More More options
Print post
Permalink
To add to above read the "players" section at http://www.shadowbox-js.com/options.html#players and you'll see HTML is only good to inject pure HTML code. If you need more than that you want to use iframe.
Webwalkers

Re: html player doesn't work

Reply Threaded More More options
Print post
Permalink
In reply to this post by effeksys
Thanks, Andrew, for your reply.

In my case it turned out to be a simple typo on my part. My inline content (pure html) is now displaying properly in all 3 browsers.