Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2006
    Thanked 0 Times in 0 Posts

    WMPlayer Firefox - weird frustrating problem

    Here is my code - trying to keep things as simple as possible. Everything works in IE, but the button within the table does not work in Firefox... the one outside the table does...

    Been sweating this for a couple of days now... The alert is for testing. What is weirder is that the button that is in a table gets to the LoadStation function. If you put the alert before the Player.URL bit, it shows that the function is getting the string.

    Any ideas?

    testing in Win2K - not sure how XP would react.

    relevant code:

    <script type="text/JavaScript">
    function LoadStation (str)
       Player.URL = str;
    <OBJECT ID="Player" height="0" width="0" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <embed type="application/x-mplayer2" pluginspage="(URL address blocked: See forum rules)" name="Player"></embed>
    <input name="song_button" type="button" onClick="LoadStation('(URL address blocked: See forum rules))" value="mp3a">
    <table border="0" cellpadding="0" cellspacing="0">
        <td><input name="song_button" type="button" onClick="LoadStation('(URL address blocked: See forum rules))" value="mp3a"></td>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    In a place far, far away...
    Thanked 1,043 Times in 1,019 Posts
    Firefox needs activex for the play() function to even work. By default activex in firefox is not installed so the script you have above shouldn't even work in Firefox in the first place.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts