this doesn't work?
> <cfset myList = "soundTrack01.mp3,soundTrack02.mp3,soundTrack03.mp3">
>
> <cfset listPosition = 1 />
>
> <cfloop list="myList" index="listElement">
>
>
>
> <script>
> <cfoutput>
> $.sound.play('#myList.name[listPosition]#');
</cfoutput>
> </script>
>
> >
> <cfset listPosition = listPosition + 1 />
>
> </cfloop>
>
On Wed, Jun 8, 2011 at 1:08 PM, Rick Faircloth <[email protected]> wrote:
>
> Ok... since this won't work...
>
> <cfset myList = "soundTrack01.mp3,soundTrack02.mp3,soundTrack03.mp3">
>
> <cfset listPosition = 1 />
>
> <cfloop list="myList" index="listElement">
>
> <cfoutput>
>
> <script>
>
> $.sound.play('#myList.name[listPosition]#');
>
> </script>
>
> </cfoutput>
>
> <cfset listPosition = listPosition + 1 />
>
> </cfloop>
>
>
> ... because the javascript (jQuery) can't be looped inside the CF,
> how can I loop the jQuery play command and play through the list
> of mp3's ???
>
> Thanks for any feedback!
>
> Rick
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345121
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm