Validanguage News
January 13, 2010:
I released a new version of Validanguage with a couple bug fixes and some new features.
A full list of the changes in 1.0.2 follows:
- Two new methods were added to make it much easier to add and remove new validations
to an existing form. To add new validations to a form, call the validanguage.loadValidations(containingElement)
function, where containingElement is, for example, a div containing several new form
fields which you want to add validations for. Any validanguage comments in the div would
be loaded and the validations added. There is a corresponding validanguage.removeAllValidations(containingElement)
function. For an example of these functions in action, see the new Test Case 9 page
- Added a new validanguage.stripWhitespace() transformation function. If you would like to
strip out any leading or trailing whitespace from a form field prior to validating it,
all you need to do is use validanguage.stripWhitespace() onsubmit or onblur. You can
view further details on using stripWhitespace on the FAQ page
- Added a validanguage.$() function which is used by most validanguage functions expecting an element,
so they will accept either a DomNode or an ID.
- Bug fix: Support form fields where name="id"
October 10, 2009:
As you can no doubt see, the Validanguage website has been completely redesigned.
Thanks to nodethirtythree and Free CSS Templates
for providing the HTML and CSS template I used in the redesign.
The goal for the redesign was to make the site, demos, documentation, etc. look far
more polished and professional. Previously, validanguage was a very feature-rich,
polished library with a very shabby website, which I think definitely affected
people's perception of the library and what it has to offer.
In addition to the redesign, there is a new Validanguage release: version 1.0.1.
The changes in this release are primarily small bug fixes and behavior tweaks which I
encountered while working on the site redesign and the new layouts for the demo and
test case pages. You can download the new version here.
A full list of the changes in 1.0.1 follows:
- Fixed a typo in the regexes used in validatePasswordStrength()
- Bug fix to substituteText(): substituting lowercase for uppercase didn't work
- Fixed validateRegex(), which would sometimes error out if passed
a regular expression object as an argument to the function
- Added the ability to suppress the validateCharacters() function
when using character suppression. You can now pass validateCharacters="false"
in either the Comment API or Object API to use character suppression but
without it adding validateCharacters() as a validation.
- The default HTML produced by showError() has been changed to remove the
leading <br/> tag. This was done because it is easier for a user to
add some padding above the error message via CSS if they want some space
there than it would be to remove the line break, if they don't.
Archived Posts:
Prior to my redoing the validanguage website, validanguage was maintained on my main drlongghost.com website.
The links below link to my original blog posts announcing the release of prior versions of validanguage. Some of the links in these posts, such as those going to demo pages,
were never updated following the site redesign and are likely now broken links, but there may still be some useful info in these posts, so I'm keeping them around.