Thanks for the suggestion, Hayden. I¹ve managed to work it out ­ for the
shuffle script to work with the audio in IE, you have to call the shuffle
BEFORE the audio code ­ in my case I moved all the conditional comments
below the ³.shuffle();² stuff and it works no worries :)

Cheers,
Erin


From: Hayden O'Sullivan <hay...@haydensites.com.au>
Reply-To: <wsg@webstandardsgroup.org>
Date: Fri, 7 Oct 2011 17:47:58 +1000
To: <wsg@webstandardsgroup.org>
Subject: RE: [WSG] Shuffling audio objects with JavaScript

Erin,
Instead of using conditional comments, try placing the fallback code INSIDE
the <audio> element (e.g. <audio [all the params]>[fallback code]</audio>.
That might work.
Best wishes,
Hayden
 

From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On
Behalf Of Erin Lawson
Sent: Friday, 7 October 2011 4:26 PM
To: wsg@webstandardsgroup.org
Subject: [WSG] Shuffling audio objects with JavaScript
 
Hi all,

I am creating a webpage that uses JavaScript to shuffle a series of audio
file ³questions² and their matching drag-and-drop answers. I have
successfully implemented this using the native HTML5 audio tags but also
have a fallback section for IE 7/8 since these browsers cannot read the
<audio> tag. This fallback section uses conditional comments around <object>
and <param> tags as demonstrated at the end of this article here
<http://www.elated.com/articles/html5-audio/> .

Unfortunately the shuffle script doesn¹t want to play nicely with the
fallback <object> and <param> code, and as result the audio will not play
when I click the buttons in IE. If I remove the shuffle from the IE fallback
the audio works fine, and the native <audio> works fine with the shuffle
applied.

I have posted the test page here
<http://learnline-dev.cdu.edu.au/chn101/lesson1/initials/bmpw.html>  so you
can see what I mean - try it in FF/Chrome/Safari, then have a look in IE
7/8.

If anyone needs to see specific parts of code, just let me know.

Many thanks in advance!
Erin 

*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to