Safari innerHTML doesn't destroy EMBED objects

Discussion in 'Javascript' started by nyluke@gmail.com, Dec 13, 2006.

  1. Guest

    If I embed a movie (Quicktime or anything) in a DIV and then use
    javascript to change the innerHTML of that DIV, the movie keeps playing
    invisibly (I can hear the audio) after the change. This works in every
    browser except Safari. Anyone know a fix?
    Tx
     
    , Dec 13, 2006
    #1
    1. Advertising

  2. ASM Guest

    a écrit :
    > If I embed a movie (Quicktime or anything) in a DIV and then use
    > javascript to change the innerHTML of that DIV, the movie keeps playing
    > invisibly (I can hear the audio) after the change. This works in every
    > browser except Safari. Anyone know a fix?


    <div id="player">
    <emded name="mySong" EnableJavaScript="true" ... >
    </div>

    <a href="#"
    onclick="
    document.mySong.Stop();
    document.body.removeChild(document.getElementById('player'));
    return false;
    ">destroy player</a>


    perhaps ?
    not tested ... !

    <http://developer.apple.com/documentation/quicktime/Conceptual/QTScripting_JavaScript/index.html>

    --
    Stephane Moriaux et son (moins) vieux Mac déjà dépassé
    Stephane Moriaux and his (less) old Mac already out of date
     
    ASM, Dec 13, 2006
    #2
    1. Advertising

  3. ASM Guest

    a écrit :
    > If I embed a movie (Quicktime or anything) in a DIV and then use
    > javascript to change the innerHTML of that DIV,


    http://stephane.moriaux.perso.wanadoo.fr/truc/innerHTML_danger

    --
    Stephane Moriaux et son (moins) vieux Mac déjà dépassé
    Stephane Moriaux and his (less) old Mac already out of date
     
    ASM, Dec 13, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ook
    Replies:
    2
    Views:
    344
  2. David Espada
    Replies:
    0
    Views:
    120
    David Espada
    Dec 27, 2004
  3. Replies:
    1
    Views:
    129
    Randy Webb
    Apr 14, 2006
  4. sonic
    Replies:
    5
    Views:
    296
    Randy Webb
    Jul 11, 2006
  5. dd
    Replies:
    3
    Views:
    166
Loading...

Share This Page