odd javascript behaviour with Safari??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff Cox

    odd javascript behaviour with Safari??

    Hello,

    I am using Safari (v3.1.1) on a PC and click on an image to play a
    sound. Once the sound is finished 2 images appear and the user has to
    select one of them.

    This works perfectly well with IE, FF and Opera but with Safari the 2
    images only appear if you move the mouse cursor after the sound has
    finished!!

    Why?

    Cheers

    Geoff
  • Evertjan.

    #2
    Re: odd javascript behaviour with Safari??

    Geoff Cox wrote on 15 mei 2008 in comp.lang.javas cript:
    I am using Safari (v3.1.1) on a PC and click on an image to play a
    sound. Once the sound is finished 2 images appear and the user has to
    select one of them.
    >
    This works perfectly well with IE, FF and Opera but with Safari the 2
    images only appear if you move the mouse cursor after the sound has
    finished!!
    >
    Why?
    Since we just all lost our christal balls,
    better post the relevant code.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Geoff Cox

      #3
      Re: odd javascript behaviour with Safari??

      On 15 May 2008 20:26:58 GMT, "Evertjan."
      <exjxw.hannivoo rt@interxnl.net wrote:
      >Geoff Cox wrote on 15 mei 2008 in comp.lang.javas cript:
      >
      >I am using Safari (v3.1.1) on a PC and click on an image to play a
      >sound. Once the sound is finished 2 images appear and the user has to
      >select one of them.
      >>
      >This works perfectly well with IE, FF and Opera but with Safari the 2
      >images only appear if you move the mouse cursor after the sound has
      >finished!!
      >>
      >Why?
      >
      >Since we just all lost our christal balls,
      >better post the relevant code.
      OK!

      t = what.id.substri ng(1,2);
      what.onclick = '';
      what.src = played.src;
      soundManager.cr eateSound({
      id:'mySound'+t,
      url:'../assets/audio/Track' + (+t) + '.mp3',
      onfinish:functi on(){document.g etElementById(' test'+t+1).clas sName =
      'visibleDiv2'} });
      soundManager.pl ay('mySound'+t) ;
      count++;

      it appears that to get the onfinish part to work you have to move the
      cursor. I am being told by others that Safari has a bug related to
      this. Know of anything?

      Cheers

      Geoff

      Comment

      • Evertjan.

        #4
        Re: odd javascript behaviour with Safari??

        Geoff Cox wrote on 15 mei 2008 in comp.lang.javas cript:
        On 15 May 2008 20:26:58 GMT, "Evertjan."
        <exjxw.hannivoo rt@interxnl.net wrote:
        >
        >>Geoff Cox wrote on 15 mei 2008 in comp.lang.javas cript:
        >>
        >>I am using Safari (v3.1.1) on a PC and click on an image to play a
        >>sound. Once the sound is finished 2 images appear and the user has to
        >>select one of them.
        >>>
        >>This works perfectly well with IE, FF and Opera but with Safari the 2
        >>images only appear if you move the mouse cursor after the sound has
        >>finished!!
        >>>
        >>Why?
        >>
        >>Since we just all lost our christal balls,
        >>better post the relevant code.
        >
        OK!
        >
        t = what.id.substri ng(1,2);
        what.onclick = '';
        what.src = played.src;
        soundManager.cr eateSound({
        id:'mySound'+t,
        url:'../assets/audio/Track' + (+t) + '.mp3',
        onfinish:functi on(){document.g etElementById(' test'+t+1).clas sName =
        'visibleDiv2'} });
        soundManager.pl ay('mySound'+t) ;
        count++;
        >
        it appears that to get the onfinish part to work you have to move the
        cursor. I am being told by others that Safari has a bug related to
        this. Know of anything?
        It will depend on what soundManager means.

        On the web iI read:
        "SoundManag er has been deprecated in favour of SoundManager 2"

        Would that help?

        Anyway, you will need a specialist on flash, not on javascript, meseems,
        as in your code there is no <img>, no onmousemove=.

        I think wrong NG.

        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        • Geoff Cox

          #5
          Re: odd javascript behaviour with Safari??

          On 15 May 2008 21:56:15 GMT, "Evertjan."
          <exjxw.hannivoo rt@interxnl.net wrote:
          >Geoff Cox wrote on 15 mei 2008 in comp.lang.javas cript:
          >
          >On 15 May 2008 20:26:58 GMT, "Evertjan."
          ><exjxw.hannivo ort@interxnl.ne twrote:
          >>
          >>>Geoff Cox wrote on 15 mei 2008 in comp.lang.javas cript:
          >>>
          >>>I am using Safari (v3.1.1) on a PC and click on an image to play a
          >>>sound. Once the sound is finished 2 images appear and the user has to
          >>>select one of them.
          >>>>
          >>>This works perfectly well with IE, FF and Opera but with Safari the 2
          >>>images only appear if you move the mouse cursor after the sound has
          >>>finished!!
          >>>>
          >>>Why?
          >>>
          >>>Since we just all lost our christal balls,
          >>>better post the relevant code.
          >>
          >OK!
          >>
          >t = what.id.substri ng(1,2);
          >what.onclick = '';
          >what.src = played.src;
          >soundManager.c reateSound({
          >id:'mySound'+t ,
          >url:'../assets/audio/Track' + (+t) + '.mp3',
          >onfinish:funct ion(){document. getElementById( 'test'+t+1).cla ssName =
          >'visibleDiv2 '} });
          >soundManager.p lay('mySound'+t );
          >count++;
          >>
          >it appears that to get the onfinish part to work you have to move the
          >cursor. I am being told by others that Safari has a bug related to
          >this. Know of anything?
          >
          >It will depend on what soundManager means.
          >
          >On the web iI read:
          >"SoundManage r has been deprecated in favour of SoundManager 2"
          >
          >Would that help?
          No, 'afraid not, soundManager is OK, the other files are
          soundmanager2.j s and soundmanager2.s wf.

          Thanks anyway,

          Cheers

          Geoff

          >
          >Anyway, you will need a specialist on flash, not on javascript, meseems,
          >as in your code there is no <img>, no onmousemove=.
          >
          >I think wrong NG.

          Comment

          Working...