Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-ajax-forms 0.3.1

    Download button

    No screenshots available
    Downloads: 137  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tim Savage | More programs
    BSD License / FREE
    February 21st, 2012, 15:30 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-ajax-forms description

    Client side JavaScript validation for any Django form

    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 >



    Product's homepage

    Here are some key features of "django-ajax-forms":

    · Template tag to provide JavaScipt (JSON) field description of any Django form via introspection.
    · Extended attributes defined on the form (similar to inner Meta classs)

    · Custom validation, similar to how clean is used in Form classes
    · Comparison between fields (ie compare password and password check fields)

    · Support for custom fields (ie fields that are not part of the Django distribution)
    · Output form using a structure
    · Caching of generated JSON. Uses the built in caching framework to cache generated JSON.

    Requirements:

    · Python
    · Django
    · jQuery

      


    TAGS:

    JavaScript validation | Django form | Django | form | JavaScript

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM