Jump to content


FireFox and JS


1 reply to this topic

#1 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 12 July 2005 - 05:13 AM

Hi guys

I'm having a problems with this java script:
function getTime()
{ return Math.round(top.document.MediaPlayer.GetPosition() / 1000); }
...
...
<a onClick="alert(getTime())" href="#">getTime()</a>
}

as you probably recognized, this script just gets the time out of the embedded
Real Player.
As soon as you scrub the timeline, the javascript should alert me with the timeinstance of the player. That's working just fine on IE and NS, but as soon as I tried it out with FF it just doesn't work anymore.

Anybody up for a helping hand?

Thanks

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 13 July 2005 - 01:14 PM

Well, that could mean 1 of a 2 things.
1. Firefox deosn't have RealPlayer installed on it, or it doesn't support javascript functions working with realplayer.
2. IE doesn't know anything, that's why it works. (no explaination for NS though).

Check to see if the javascript console is giving you an error or anything to work with. If not, try asking your question Here





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users