The Latest in JavaScript
Unobtrusive Form Field Validation
JavaScript Form Processing
This is a complete example of all the HTML and JavaScript required to unobtrusively attach JavaScript validations to a form. It also includes the code to validate the HTML 5 required and pattern attributes across all browsers.
JavaScript Form Processing
Even though older browsers don't support the HTML5 pattern attribute for form fields we can implement it ourselves in JavaScript.
JavaScript Form Processing
Even though older browsers don't support the HTML5 required attribute for form fields we can implement it ourselves in JavaScript.
JavaScript Form Processing
Once our form validation detects an error we need an unobtrusive way to display the error.
Variables, Functions, Properties and Methods
While these four terms have distinct meanings in some languages, things are not as clear cut in JavaScript.
JavaScript Form Processing
When we set up unobtrusive form field validation we can easily share validation between fields that need to validate the same way.
Radio Button Validation
Everything you need to know about radio button creation and validation.
JavaScript Form Processing
The modern unobtrusive way of attaching JavaScript to validate a form in your web page doesn't require any changes to the HTML of the form.
JavaScript Form Processing
Changes to both JavaScript and HTML have affected the way we should be using JavaScript to validate our forms and will affect it further in the future.
Null and Undefined
Both null and undefined in JavaScript do not always behave as you might expect them to.
JavaScript Testing
Which order you run your tests in will affect how likely it is that you will need to rerun lots of tests if one fails.
JavaScript By Example
By using apply or call we can borrow the constructor function from a different object to create a part of a new object for us.
JavaScript By Example
We don't need a special constructor function to be able to create an object, an ordinary function can be used instead provided we return the created object.
JavaScript By Example
Since JavaScript doesn't use classes we need to define singletons a little differently from other languages. Let's look at it as when creating multiple objects from the same base object actually just create aliases for a single object instead.
Previous
1
2
3
4
© 2015 About.com — All rights reserved.