I have built a CFFORM using the Accordion Flash layout and I woudl like it if I
could run a javascript command on that page when each accordion form group
header is clicked.
I can get links contained in that form group to run commands, but the ideal
situation would be that a command can run when I click on the group header so
it can change DIV contents elsewhere on the page to match the group chosen.
Thanks in advance.
mrgccc3 - 29 Feb 2008 23:21 GMT
dude, i'd dump it and go with adobe spry or something, it makes it so
much easier to use javascript and work with other divs on the page and
such. But thats my personal opinion. Also spry has some easy
validation you can setup if you want nice validation and no work for
yourself. Well i guess its still some work. I was in the same boat
for something and I decided flash really bogged stuff down, but it is
cool.
But if you still want to use the flash cfform try this:
This assumes your accordion is named "MyAccordion"
<cfinput type="button" name="PreviousPanel" value="Previous"
onClick="MyAccordion.selectedIndex=MyAccordion.selectedIndex-1">
BrianO - 02 Oct 2008 14:18 GMT
I was looking for a similar thing, something like ColdFusion.Window.onShow, but ColdFusion.Layout.onShow instead. Did not see any such thing. I submitted a feature request just now.