[thelist] Flash Forms with CF - error diagnostics

.jeff jeff at members.evolt.org
Wed Aug 28 13:18:18 CDT 2002


chris,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Chris Hayes
>
> When a Flash form posts it can action a cfm file to
> receive the form data to be processed, much the same
> way as an HTML form.  The only difference being that
> no window is opened, the process is entirely within
> the flash movie.
>
> Does anybody have a ideas or inspiration on how to get
> my CF error diagnostics back?  The form can fail to
> post and nobody would ever know:(
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

have the post page setup to send back an errors associative array (structure in cf-speak) where each form field that was incorrect has a key with the value being the particular error message generated server-side for that form field.  if the errors array doesn't have any keys then the form posted successfully.  if it does, loop over the array in flash (using a for/in loop) displaying the error message with each field that was invalid/incorrect/missing data.  now, the trick will be having the cf template generate the error in a fashion that's readable by the flash file.

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list