logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-11-2011, 06:56 PM   #1
doakh
 
Join Date: Feb 2011
Posts: 8
Default Email Validation

I am trying to validate an 'email address' in a contact form. I installed the 'Spry Validation Text Field' and choose Email Address as the type in the Properties Tab. I am having trouble hiding the 'invalid format' and 'a value is required' preview states. I want them to appear when the user has not entered a text or a valid email address as I have seen at http://http://labs.adobe.com/technologies/spry/samples/validationwidge ts/TextfieldValidationSample.html and not like the attached link below. The following script is active..'var sprytextfield1 = new Spry.Widget.VaildationTextField("emailValidation", "email", {validationOn: ["blur"]});.
Go to www.designthelight.com/pages/contact3.html to see image.

Thanks

Last edited by doakh; 02-11-2011 at 07:06 PM..
doakh is offline   Reply With Quote
Old 02-12-2011, 06:05 PM   #2
doakh
 
Join Date: Feb 2011
Posts: 8
Default Spry Validation Backwards

When I use 'Spry Validation Text Field' on a input tag for a 'name' for instance in a 'contact page', the validation is backwards. In Live View the error message' A Value is Required' is displayed before anything is inputted or the submit button is clicked. When the submit button is click without entering anything in the 'input' tag the error message disappears, when is should be executed.

Any ideas...Thanks
doakh is offline   Reply With Quote
Old 02-14-2011, 03:12 AM   #3
johnlester
 
Join Date: Feb 2011
Posts: 1
Default

If I build a site for a company I always suggest to use an external real-time validation company for the forms and stuff. I personally use They do a great job with that.

Last edited by edbr; 02-14-2011 at 04:18 AM.. Reason: removed link
johnlester is offline   Reply With Quote
Old 02-14-2011, 04:19 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,176
Default

i cant see any advantage to doing that. spty or javascipt are client side if using external thenyou may as well use serverside validation
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is online now   Reply With Quote
Old 02-14-2011, 01:44 PM   #5
doakh
 
Join Date: Feb 2011
Posts: 8
Default

I do have server side validation via my PHP email program. I just thought it would be user friendly to have an error message on the 'contact' page. The server side validation occurs on a new page, so the client has to go back fill in the form again.
doakh is offline   Reply With Quote
Old 02-15-2011, 01:35 AM   #6
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,176
Default

yes i agree the best description of client side (ie javascript) was that its not validation but a form helper being fast error checking . Its maybe not strictly true but for me its a good description
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is online now   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com