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 =
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
Unfortunately, no...
The result is the same. Since the js works client side
and the cf works server-side, I assume that the js can't
be re-initialized like we've tried.
I may need to set this up to be scripted (both CF and JS)
in CFC function that will write the CF and JS back into the
DOM
To be clearer, everything works fine, except for the fact
that nothing loops. I get the first sound track, soundTrack01.mp3,
played once, and then everything stops.
Re-writing the JS into the DOM with every iteration is the
only other possibility I can think of which will allow the
JS to be
Rick,
Try this:
cfset myList = soundTrack01.mp3,soundTrack02.mp3,soundTrack03.mp3
cfset listPosition = 1 /
cfoutput
script
cfloop list=myList index=listElement
$.sound.play('#myList.name[listPosition]#');
cfset listPosition = listPosition + 1 /
/cfloop
/script
/cfoutput
Hmmm... it didn't like that one either:
You have attempted to dereference a scalar variable
of type class java.lang.String as a structure with members.
The error occurred in E:\inetpub\webroot\html5css3\fadeImages3.cfm: line 20
18 :cfloop list=myList index=listElement
19 :
20 :
Rick,
Is this how you want to source code to look on the page?
script
$.sound.play('soundTrack01.mp3[1]');
$.sound.play('soundTrack02.mp3[2]');
$.sound.play('soundTrack03.mp3[3]');
/script
Here is the code that I used to render it.
cfset myList =
Are you trying to queue the sound tracks up to play one after the other?
On 6/8/2011 10:25 AM, Rick Faircloth wrote:
To be clearer, everything works fine, except for the fact
that nothing loops. I get the first sound track, soundTrack01.mp3,
played once, and then everything stops.
Thanks for that, Dan... one step closer...
-Original Message-
From: Dan Blickensderfer [mailto:d...@blickensderfer.com]
Sent: Wednesday, June 08, 2011 2:28 PM
To: cf-talk
Subject: Re: How to do this with CF and JS?
Rick,
Is this how you want to source code to look on the page?
Actually, here's the entire functionality I'm trying to bring together:
- one directory has list of images
- another directory has a list of .mp3 files
The goal is to create a self-generating slide-show, with audio.
Each mp3 file will be played for each (currently, but could be more
than one,
Hey Guys,
I'm trying to resize images using the CFX_image tag.
Everything works great for GIFs and JPGs, but when I try and resize a PNG
image, all that is returned is a completely blank white image.
The code I'm using is:
CFX_IMAGE ACTION=RESIZE
Could you maybe do something instead with cfpresentation and
cfpresentationslide? It can tie audio (.mp3) to each slide, and can
autoplay the entire presentation.
HTH,
Carl
On 6/8/2011 12:06 PM, Rick Faircloth wrote:
Actually, here's the entire functionality I'm trying to bring together:
Try this css at the top of your page
.x-grid3-td-0 {-moz-user-select:auto}
.x-grid3-td-1 {-moz-user-select:auto}
.x-grid3-td-2 {-moz-user-select:auto}
.x-grid3-td-3 {-moz-user-select:auto}
.x-grid3-td-4 {-moz-user-select:auto}
.x-grid3-td-0 {-webkit-user-select::auto}
.x-grid3-td-1
Ooohhh... I'll have to check that out! Haven't used
those tags before!
Thanks for the tip, Carl!
Rick
-Original Message-
From: Carl Von Stetten [mailto:vonner.li...@vonner.net]
Sent: Wednesday, June 08, 2011 5:00 PM
To: cf-talk
Subject: Re: How to do this with CF and JS?
Could you
Is it better to store the data for the survey in an array of structures
or save each page to the database as the user moves through the form,
This depends on if you require the entire survey to be filled out or if
partial information is acceptable. We have done both. For most of the
survey
15 matches
Mail list logo