In this post I’ll quickly present three Jquery plugin I often use: Jquery Validator [link] [download my working example html+js.zip] After defining the field validators (email, string length range, regex, equalTo another element, int…) for all the form elements in one array. It shows the error messages next to the form elements and prevent the [...]
Archive for the ‘Javascript, AJAX and JQuery’ Category
a Javascript function to manage function timeout
Posted by admin on October 15th, 2009
Today I worked with form validations and AJAX requests associated with the event keyup in the input fields. Sometimes the validation requires an AJAX call (for instance to check if the typed text already exists in the DB). In order to avoid a request for each char typed, a good solution might be using set/clearTimeout. [...]
JSON generation with PHP and parsing with jQuery
Posted by admin on June 14th, 2009
JSON [official site][wiki] is a data interchange format (similar to XML, but simpler), often used for WEB 2.0 applications to load structured data with AJAX HTTP calls. – PHP offers functions to encode and decode JSON from/to a PHP value. – jQuery includes a function (getJSON) to parse HTTP resource with JSON data. JSON pseudo [...]
RSS Feed
Twitter
Posted in
