Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / October 2008



Tip: Looking for answers? Try searching our database.

CFFORM - Accordion - onclick possible?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SafariTECH - 29 Feb 2008 18:29 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.