473,322 Members | 1,241 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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
Jun 27 '08 #1
4 1295
Geoff Cox wrote on 15 mei 2008 in comp.lang.javascript:
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)
Jun 27 '08 #2
On 15 May 2008 20:26:58 GMT, "Evertjan."
<ex**************@interxnl.netwrote:
>Geoff Cox wrote on 15 mei 2008 in comp.lang.javascript:
>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.substring(1,2);
what.onclick = '';
what.src = played.src;
soundManager.createSound({
id:'mySound'+t,
url:'../assets/audio/Track' + (+t) + '.mp3',
onfinish:function(){document.getElementById('test' +t+1).className =
'visibleDiv2'} });
soundManager.play('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
Jun 27 '08 #3
Geoff Cox wrote on 15 mei 2008 in comp.lang.javascript:
On 15 May 2008 20:26:58 GMT, "Evertjan."
<ex**************@interxnl.netwrote:
>>Geoff Cox wrote on 15 mei 2008 in comp.lang.javascript:
>>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.substring(1,2);
what.onclick = '';
what.src = played.src;
soundManager.createSound({
id:'mySound'+t,
url:'../assets/audio/Track' + (+t) + '.mp3',
onfinish:function(){document.getElementById('test' +t+1).className =
'visibleDiv2'} });
soundManager.play('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:
"SoundManager 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)
Jun 27 '08 #4
On 15 May 2008 21:56:15 GMT, "Evertjan."
<ex**************@interxnl.netwrote:
>Geoff Cox wrote on 15 mei 2008 in comp.lang.javascript:
>On 15 May 2008 20:26:58 GMT, "Evertjan."
<ex**************@interxnl.netwrote:
>>>Geoff Cox wrote on 15 mei 2008 in comp.lang.javascript:

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.substring(1,2);
what.onclick = '';
what.src = played.src;
soundManager.createSound({
id:'mySound'+t,
url:'../assets/audio/Track' + (+t) + '.mp3',
onfinish:function(){document.getElementById('test '+t+1).className =
'visibleDiv2'} });
soundManager.play('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:
"SoundManager has been deprecated in favour of SoundManager 2"

Would that help?
No, 'afraid not, soundManager is OK, the other files are
soundmanager2.js and soundmanager2.swf.

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.
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.