This component allows you to perform simple validation on your HTML forms, such as…
- full name (allows first name{minimum of 3 characters}, middle name and surname)
- email address
- UK telephone number
- age (maximum of 3 numerical digits)
- date (in the format of dd/mm/yyyy)
- credit card
…as well as implement ‘hint’ functionality and duplicate values from one set of fields to another (such as when ticking a checkbox when your delivery address is the same as your billing address).
This component DOES NOT use a JavaScript library (although while uploading I was forced to select a library by default??).
My JavaScript file is 3k minified using YUI Compressor.
You must sign in or sign up to purchase this item.
Download Price: $3
This Product Download Buyers Review:
Hey I don’t mean this in a bad way but cant you just use the basic tools in dreamweaver to do the same thing with spry?Download JavaScript Validate CodeCanyon FreeJavaScript | form,
Download Price: $3
I’ve never used the Spry library, but from what I understand it’s one of the less efficient JavaScript libraries available (compared to jQuery or MooTools etc).
Also, as I’ve stated before I don’t like the idea of having to use a JavaScript library of that magnitude for doing form validation (I believe Spry is about 76k in size and is completely unreasonable for my users to have to download 76k for the sole purpose of form validation).
I have found that most people are quite happy with writing their own JavaScript to cover the basic functionality they require in a project and have no need for a full blown framework. But then they’ll come across a particular part of their application that is either outside their skill level or just a pain to implement themselves and so they go running to the nearest JavaScript library to save them the hassle.
Hence why I wrote this function for validating forms, to save me from having to download jQuery + a form validation plugin to perform something I could just as well do myself.
But either way, thank you for the comment. I appreciate you sharing your perspective.Forms | validation,
does this send the form as well? in an email?
Hi Robbie, apologies for my late reply!
No, the code provided is just JavaScript code.
The reason I haven’t provided a server-side script for sending form data via email is because I only code in PHP and chances are someone will want code examples for sending emails in ASP .NET, Ruby, Python or whatever language they happen to build in. So it was best just to leave the server-side up to the user to handle.
There are plenty of tutorials online if you need assistance with writing a server-side script to handle form data, just do a Google search for something like “send email using X” (replace X with your language of choice).
Thanks Robbie.
Kind regards,Mark
Seemed nice and simple but I couldn’t get it to work, not one for the newb’s
Hi RobbyDesigns, apologies for the very late reply – I’ve been very busy at work and have not had any time to check this site or any comments left for this item.
Because I wrote this validation script using ‘plain vanilla’ JavaScript (e.g. no Js Library like jQuery backing it up) it does mean a user needs to have some JavaScript knowledge to use it.
This component is geared at web developers and not non-technical users, so a web dev should be able to use this without too much hassle.
Thanks for the comment.
This is coolif you insert a pop up calendar in the date fieldwill be great.
Hi Claudia, apologies for the very late reply – I’ve been very busy at work and have not had any time to check this site or any comments left for this item.
A JavaScript date picker widget would be a nice feature to implement but would require quite a bit of extra CSS /HTML/JavaScript to implement it and so I feel is outside the remit of what this component is ideally for.
If you want to add a JavaScript date picker then you are obviously free to do so, but I doubt I’ll be adding this as it strays from the components intended purpose of ‘form validation’.
Thanks for commenting though.
Hi,
I have purchased this item and cannot get it to work with dropdown select boxes. Any ideas or help would be much appreciated.
Thanks. L
Hi brooshay, apologies for the very late reply – I’ve been very busy at work and have not had any time to check this site or any comments left for this item.
No plans to add in a ‘select’ element into the mix at this stage, possibly in the future when time permits.
Thanks for the comment.
question for you- if people enter their credit card info, is this a secure form?
Hi afleming33, apologies for the very late reply – I’ve been very busy at work and have not had any time to check this site or any comments left for this item.
No, for a form to be secure you require an SSL certificate installed on your server to make sure when the form was submitted that the data was transferred encrypted from the users machine to the server.
This component is merely a validation script written in JavaScript using Regular Expressions.
Thanks for the comment.
can i changne date field to (YYYY-MM-dd)?
Download JavaScript Validate CodeCanyon Free
http://www.xvcz.com/download-javascript-validate-codecanyon-free/
No comments:
Post a Comment