Populating related cfselects via Flash Remoting

First of let me say that as much as I would love this to be my code it mainly comes out of two posts [1,2] on ASFusion.com.

To sidetrack for a moment, I must point out now is that even if you don't find answers in the Asfusion posts always check the comments out! They get up to 50+ comments on some posts with hints and tips there as well.

Back to the form. I had a project which started life as a 5 page HTML form with the need to make it a little user friendly to the eyes and more organised. Any form over 2 pages I hate in general and I seem to be the only person in the world who thinks one long page is better than X amount of multiple pages this is whether i'm filling them in or creating them.

In moving my HTML form over to <cfform format="flash"> I ran into the problem of having to duplicate some Ajax where one select is populated from a DB then another select is populated from there. It didn't take too much digging around and I thought i'd share in case it helps anyone else out. My Flash/As knowledge isn't 100% so if you see an easier way drop me a line in the comments.

First of the CFC

Posted: 25-Jul-2006

View: 4697

Permalink: here

Comments

do you know about this website, plenty of cool examples
http://www.asfusion.com/

#1 Sana
26/Apr/07 1:22 PM

Sana, in the first line of the post i mention that this code originates from ASFusion :o)

#2 Andy J
26/Apr/07 1:49 PM

I get:
"Error while calling cfc:Service flashRemotingResponder not found. OK"
when I try to add this to my cfm page.

Do I need to name the cfm page flashRemoting.cfm in order for this to work?
what am I missing? If I change the cfsavecontent to a function, what else will I need to change?

I have been working with the ASFusion pages for a while and still can not figure this out.

Thanks for any help.

#3 thomary
06/Mar/09 11:30 AM