Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
dawntx #1
CFFORM onSubmit()
I have been trying to figure this one out. Haven't found the solution by
searching the forums. I'm hoping someone else has come across this and will be
able to offer insight.
I have created a CFFORM, FORMAT="flash", in ColdFusion MX7. The form works
fine. However, if I add an onSubmit() to the CFFORM tag, or an onSubmit() or an
onChange() to a child object - a CFSELECT or a CFINPUT for example - the form
no longer displays when I load the page. What am I missing here?
:confused;
Thanks for any help,
Melanie
(WORKS)
<CFFORM FORMAT="flash" ACTION="cardverify.cfm" METHOD="POST"
PRESERVEDATA="yes" TIMEOUT="60" WIDTH="60%" HEIGHT="50%"
SKIN="HALOBLUE" WMODE="opaque" NAME="CARDFORM"
style="backgroundColor:##FFFFCC;" >
<CFFORMGROUP TYPE="tabnavigator" style="backgroundColor:##FFFFCC;" >
<CFFORMGROUP TYPE="page" LABEL="PAGE1">
<CFINPUT TYPE="TEXT" NAME="CARDDESC" LABEL="Description:" REQUIRED="yes"
MESSAGE="Please enter a description for this card"
WIDTH="400" MAXLENGTH="40" TOOLTIP="Enter a description for this card">
<CFSELECT NAME="EMPLOYEEID" LABEL="Employee:" REQUIRED="yes" MESSAGE="Please
select an employee"
WIDTH="200" TOOLTIP="Select an employee" SIZE="1" MULTIPLE="NO"
QUERY="qEmployees" VALUE="EmployeeID" DISPLAY="FirstName"></CFSELECT>
</CFFORMGROUP>
</CFFORMGROUP>
</CFFORM>
(DOES NOT WORK)
<CFFORM FORMAT="flash" ACTION="cardverify.cfm" METHOD="POST"
PRESERVEDATA="yes" TIMEOUT="60" WIDTH="60%" HEIGHT="50%"
SKIN="HALOBLUE" WMODE="opaque" NAME="CARDFORM"
style="backgroundColor:##FFFFCC;" >
<CFFORMGROUP TYPE="tabnavigator" style="backgroundColor:##FFFFCC;"
onSubmit="myOnSubmit();">
<CFFORMGROUP TYPE="page" LABEL="PAGE1">
<CFINPUT TYPE="TEXT" NAME="CARDDESC" LABEL="Description:" REQUIRED="yes"
MESSAGE="Please enter a description for this card"
WIDTH="400" MAXLENGTH="40" TOOLTIP="Enter a description for this card">
<CFSELECT NAME="EMPLOYEEID" LABEL="Employee:" REQUIRED="yes" MESSAGE="Please
select an employee"
WIDTH="200" TOOLTIP="Select an employee" SIZE="1" MULTIPLE="NO"
QUERY="qEmployees" VALUE="EmployeeID" DISPLAY="FirstName"></CFSELECT>
</CFFORMGROUP>
</CFFORMGROUP>
</CFFORM>
dawntx Guest
-
Basic CFMail and onSubmit question
Try changing <form name= "validation" onSubmit action="thanks.cfm" method="post"> to <form name= "validation" action="thanks.cfm" method="post"> -
MX7 problem with cfform onSubmit behavior
Mike says, "This is a known bug, we found this to late in the development cycle to get it in." I can't find any other documentation about this bug... -
CFFORM OnSubmit Attribute trumps CFINPUT ValidateAttribute
On Our System, I compared rendered source html files from a ColdFusion 5 Server and ColdFusion MX7 Server for an example program that included a... -
onSubmit
Is there a way to use the onSubmit action in a cfform since coldfusion uses that to run it stuff for verification? Thanks in advance!! -
onSubmit question
Can you make multiple (two) calls to a javascript function for the onSubmit event? Currently, I'm calling one JS function like the following: ... -
Tom Jordahl #2
Re: CFFORM onSubmit()
If you are using flash forms you must use Actionscript, not Javascript.
--
Tom Jordahl
Macromedia Server Development
Tom Jordahl Guest
-



Reply With Quote

