Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
ojoonline00 #1
cfform validation and pop up error
hi, i have two javascript functions. One is for email validation and the
other to initiate a pop up window with a confirmation. <script
language='JavaScript'> function validateEmailAddress(obj, formObj, formValue) {
var regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/; return
regex.test(formValue); } </script> <script type='text/javascript'> function
createTarget(t){ window.open('', t, 'width=250,height=300'); return true; }
</script> I have used both scripts and have worked ok on their own. When i
click the submit button, a pop up is initiated but it is blank and the
'confirm.cfm' page loads perfectly in a new window. The confirm.cfm page
should load in the pop up. <cfform action='confirm.cfm' method='post'
onsubmit='return createTarget(this.target)' target='formtarget'>
<cfinput type='text' name='signUpName' required='yes' message='Please enter
your name.' value='Your name' class='text_field_form'> <cfinput type='text'
name='signUpEmail' required='yes' message='Please enter a valid email address.'
onvalidate='validateEmailAddress' value='Email address'
class='text_field_form'> <input type='submit' name='Submit' value=' Sign Up
' > </cfform> This looks like something of a problem with the javascript not
being called correctly. Any assistance would be greatly appreciated.
thanks, jo
ojoonline00 Guest
-
CFFORM validation trumping Custom 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... -
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... -
CFFORM Validation Bug
I'm using CFFORM and CFINPUT. I have several fields set to "required='yes'". It works fine in Firefox. However, in Internet Explorer, it's off... -
Issue with CFform validation
Hi, I have just received a notification from my host that my cfforms have a coding mistake and therefore the JS error that is submited. Is it... -
CFForm Validation
Hi, This is a cfform validation question. How do I verify that the value entered in the "confirm password" box is the same as that entered in...



Reply With Quote

