About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

linux default icondjango-livevalidation Publisher's description

Django Live Validation provides quick and easy client-side form validation which validates as you type.

Django Live Validation provides quick and easy client-side form validation which validates as you type. It uses the Live Validation JS library in conjunction with Django Forms. This is by no means a replacement to Django's built in form validation, but it is a suppliment which is purely client-side baed which cuts down on server-side requests for validation.


Place 'livevalidaiton' into your INSTALLED_APPS and make sure it is above the Django admin since it overrides some of the admin templates:



To use livevalidation in your templates, make sure you load the headers first before doing anything:

{% include 'livevalidation/header.html' %}

This loads the JS library at js/livevalidation_standalone.compressed.js and the CSS at css/livevalidation.css. Feel free to tweak the CSS to your liking

Now you can use the templatetag to validate a form instance:

{% live_validate form [option=value ...] %}

Where the form is any django.forms.Form (or subclass) instance. The optional option=value kwargs are in pairs as follows:

* validMessage - message to be used upon successful validation (DEFAULT: "Thankyou!")
* onValid - javascript function name to execute when field passes validation
* onInvalid - javascript function name to execute when field fails validation
* insertAfterWhatNode - id of node to have the message inserted after (DEFAULT: the field that is being validated)
* onlyonblur - whether you want it to validate as you type or only on blur (DEFAULT: False)
* wait - the time you want it to pause from the last keystroke before it validates (milliseconds) (DEFAULT: 0)
* onlyonsubmit - if it is part of a form, whether you want it to validate it only when the form is submitted (DEFAULT: False)


System Requirements:

No special requirements.
Program Release Status:
Program Install Support: Install and Uninstall

django-livevalidation Tags:

Click on a tag to find related softwares

Is django-livevalidation your software?

Manage your software

Most Popular

linux default icon GDB 7.4
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it... Read more
linux default icon Coral 0.9.1
Coral is a tool and a development platform to create and transform models and modeling languages.
linux default icon Forum Paid Plus Script 6.1
Forum Paid Pay Per Post Exchange is targeted at forum owners who wish to...
linux default icon sdo 0.6.5
Converts oracle SDO_GEOMETRY objects to WKT and GeoJSON.
linux default icon Get Paid Plus Script 6.1
Get Paid Plus Script

Related Category

» Other (877)
» Tools & Editors (359)
» Web Development (146)