Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
CFTR #1
Flash Form Validation
Hi,
I have a flash form as below.
<cfform action="#CGI.SCRIPT_NAME#?event=users.passwordchan geaction"
method="post" name="passwordchange" height="300" width="400" skin="haloblue"
format="flash" preloader="yes">
<cfinput type="text" name="currentpassword" size="12"
message="Please enter current password!" label="Current Password"
required="yes" />
<cfinput type="text" name="newpassword" size="12" message="Please
enter new password!" label="New Password" required="yes" />
<cfinput type="text" name="newpassword2" size="12" message="Please
enter new password again!" label="New Password Again" required="yes" />
<cfinput type="submit" name="changepassword" value="Change My
Password" label="Submit" validate="submitonce" />
</cfform>
I want to validate whether newpassword and newpassword2 fields are identical
or not on client side. Are there any method such as bind etc. to do this?
TIA!
Best regards,
O?uz Demirkap?
CFTR Guest
-
Flash form with cfinput validation not working
when using a cfform with format flash and using a cfinput in that form the validate field does not work. but when using the same validation with a... -
CFFORM Validation trumping Custom Form Validation
Is there any way for custom form validation to work in concert with the cfform validation? I have a custom script that compares the values of two... -
flash form validation functions
had to play around with it, turns out you can't put that complex of actionscript in the bind attribute. But if you use a button, or anything with a... -
Validation with a flash form
You need to do this with inline actionscript, instead of javascript. try this: <cfform format="flash"> <cfinput type="Text" name="jsPass1"... -
form validation in flash mx
i've created a simple form in flash that is hooked to a scrpit that handles the information but i wish for flash to validate some basic info before... -
Mike Nimer #2
Re: Flash Form Validation
You can do this with the <cfform onSubmit> attribute.
try this:
-----------------------------
<cfform action="#CGI.SCRIPT_NAME#?event=users.passwordchan geaction"
method="post" name="passwordchange" height="300" width="400" skin="haloblue"
format="flash" preloader="yes" onSubmit="if( newpassword.text !=
newpassword2.text ){ alert('passwords don\'t match'); return false; }">
<cfinput type="text" name="currentpassword" size="12"
message="Please enter current password!" label="Current Password"
required="yes" />
<cfinput type="text" name="newpassword" size="12"
message="Please
enter new password!" label="New Password" required="yes" />
<cfinput type="text" name="newpassword2" size="12"
message="Please
enter new password again!" label="New Password Again" required="yes" />
<cfinput type="submit" name="changepassword" value="Change My
Password" label="Submit" validate="submitonce" />
</cfform>
-----------------------------
hth,
---nimer
"CFTR" <oguz@cftr.net> wrote in message
news:cvj2ma$46m$1@forums.macromedia.com...> Hi,
>
> I have a flash form as below.
>
> <cfform action="#CGI.SCRIPT_NAME#?event=users.passwordchan geaction"
> method="post" name="passwordchange" height="300" width="400"
> skin="haloblue"
> format="flash" preloader="yes">
>
> <cfinput type="text" name="currentpassword" size="12"
> message="Please enter current password!" label="Current Password"
> required="yes" />
>
> <cfinput type="text" name="newpassword" size="12"
> message="Please
> enter new password!" label="New Password" required="yes" />
>
> <cfinput type="text" name="newpassword2" size="12"
> message="Please
> enter new password again!" label="New Password Again" required="yes" />
>
> <cfinput type="submit" name="changepassword" value="Change My
> Password" label="Submit" validate="submitonce" />
> </cfform>
>
> I want to validate whether newpassword and newpassword2 fields are
> identical
> or not on client side. Are there any method such as bind etc. to do this?
>
> TIA!
>
> Best regards,
>
> O?uz Demirkap?
>
>
>
Mike Nimer Guest
-
michin11 #3
flash form validation
having a hard time changing a text field to propercase onchange in a flash
form..below is my cfinput and my javascript, any ideas?
<script language = "JavaScript">
//custom function to convert text to proper-noun case (initial caps).
function pcase(str) {
strlen = str.length
jj = str.substring(0,1).toUpperCase()
jj = jj + str.substring(1,strlen).toLowerCase()
for (i = 2; i <= strlen; i++) {
if (jj.charAt(i)==" ") {
lefthalf = jj.substring(0,i+1)
righthalf = jj.substring(i+1,strlen)
righthalf =
righthalf.substring(0,1).toUpperCase()+righthalf.s ubstring(1,strlen)
jj=lefthalf+righthalf
}
}
return jj
}
</script>
<cfinput type="text" name="FirstName" message="Please enter in a first name."
height="17" width="150" label="First Name:" validateat="onSubmit"
required="yes" onchange="getURL('javascript:this.value=pcase(this .value)')">
michin11 Guest
-
michin11 #4
Flash Form Validation
having a hard time changing a text field to propercase onchange in a flash
form..below is my cfinput and my javascript, any ideas?
<script language = "JavaScript">
//custom function to convert text to proper-noun case (initial caps).
function pcase(str) {
strlen = str.length
jj = str.substring(0,1).toUpperCase()
jj = jj + str.substring(1,strlen).toLowerCase()
for (i = 2; i <= strlen; i++) {
if (jj.charAt(i)==" ") {
lefthalf = jj.substring(0,i+1)
righthalf = jj.substring(i+1,strlen)
righthalf =
righthalf.substring(0,1).toUpperCase()+righthalf.s ubstring(1,strlen)
jj=lefthalf+righthalf
}
}
return jj
}
</script>
<cfinput type="text" name="FirstName" message="Please enter in a first name."
height="17" width="150" label="First Name:" validateat="onSubmit"
required="yes" onchange="getURL('javascript:this.value=pcase(this .value)')">
michin11 Guest



Reply With Quote

