OK on Internet Explorer; KO on Firefox

U

Ubi

I have a visualization problem on Firefox.

On Internet Explorer, it works fine.


http://www.listentoeurope.com/giardini_di_miro/dividing_opinions


By clicking on the Promo Tracks links ("audio" and "video"), a Javascript
function is invoked


This function, sets the display property of the PlayerDiv to "block", and
sets the src of the enclosed iframe to a certain url.

....
<div id="playerDiv" align="center" style="display:none">
<br style="line-height:5px">
<iframe name="player" id="player" src="/player/player.php" width="350"
height="0" frameborder="0" scrolling="no" marginwidth="0"
marginheight="0"></iframe>
</div>
....


In the iframe, either an embedded audio player (in case of an "audio" link)
or an embedded youtube player (in case of a "video" link), appears.

On Internet Explorer, everything works fine.
On Firefox, you can listen to the audio, but you cannot display the player.



Thanks for your help!


Daniele
 
D

David Mark

I have a visualization problem on Firefox.

On Internet Explorer, it works fine.

http://www.listentoeurope.com/giardini_di_miro/dividing_opinions

By clicking on the Promo Tracks links ("audio" and "video"), a Javascript
function is invoked

This function, sets the display property of the PlayerDiv to "block", and
sets the src of the enclosed iframe to a certain url.

...
<div id="playerDiv" align="center" style="display:none">
<br style="line-height:5px">
<iframe name="player" id="player" src="/player/player.php" width="350"
height="0" frameborder="0" scrolling="no" marginwidth="0"
marginheight="0"></iframe>
</div>
...

In the iframe, either an embedded audio player (in case of an "audio" link)
or an embedded youtube player (in case of a "video" link), appears.

On Internet Explorer, everything works fine.
On Firefox, you can listen to the audio, but you cannot display the player.

You should have posted this code:

function youtube(code,title) {
var playerDiv = document.getElementById('playerDiv');
playerDiv.style.display = 'block';
var player = document.getElementById('player');
player.style.height = '280';

// The above line should be player.style.height = '280px';
// And make sure you check if player and playerDiv exist before
setting their properties.

player.src = '/player/player.php?type=youtube&code='+code
+'&title='+escape(title);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top