django-ajax-forms 0.3.1

Client side JavaScript validation for any Django form

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Tim Savage
HOMEPAGE:
code.google.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
django-ajax-forms is a client side JavaScript validation for any Django form.

Simple Examples

A complete example is included in the source repository and includes several samples of the library in use.

A basic example of usage:

{% load ajax_form_utils %}

< form method="post" >
 < table >
 {{ form.as_table }}
 < tr >< td >< /td >< td >< input type="submit" / >< /td >< /tr >
 < /table >
< /form >

< script type="text/javascript" >
 $(function(){
 $('form').validation({% render_ajax_fields form %});
 });
< /script >


With DL rendering:

{% load ajax_form_utils %}

< form method="post" >
 < dl >
 {{ as_dl form }}
 < dd >< /dd >
 < /dl >
< /form >


< script type="text/javascript" >
 $(function(){
 $('form').validation({% render_ajax_fields form %}, {
 layout: 'dl'
 });
 });
< /script >

Last updated on February 21st, 2012

feature list requirements

#JavaScript validation #Django form #Django #form #JavaScript #validation

Add your review!

SUBMIT