Changes between Version 19 and Version 20 of AJAX/Dojo/RefactoredFormSubmit


Ignore:
Timestamp:
02/16/2007 08:23:31 AM (8 years ago)
Author:
erob@…
Comment:

added a title (and corrected some structural glitches..)

Legend:

Unmodified
Added
Removed
Modified
  • AJAX/Dojo/RefactoredFormSubmit

    v19 v20  
     1
     2== Refactored form submit with Dojo and newforms ==
     3
     4=== Synopsis ===
     5
     6A simple recipe for validating a form with AJAX.
    17
    28=== Introduction ===
    39
    4 Here's a simple recipe that worked for me. It is quite inspired by the [wiki:AjaxDojoFormSub] example―and from [http://www.b-list.org/weblog/2006/07/31/django-tips-simple-ajax-example-part-1 this tutorial]―except that this recipe is using python-cjson to receive JSON-encoded data.
     10Dojo and Django are two emerging toolkits gaining in popularity theses days.
    511
    6 My initial objective was to display validation errors without doing a page-refresh, while using
    7 JSON for carrying errors (or whatever else you could possibly imagine) back to the client browser.
     12The following article is describing a step-by-step recipe inspired from [wiki:AjaxDojoFormSub] and from [http://www.b-list.org/weblog/2006/07/31/django-tips-simple-ajax-example-part-1 this tutorial] for
     13validating a form with Dojo and the Django newforms API.
     14
     15''My initial objective was to display validation errors without doing a page-refresh, while using
     16JSON (python-cjson) for carrying errors (or whatever else you could possibly imagine) back to the client browser.''
    817
    918=== The server view ===
     
    134143=== Notes/Comments/Suggestions ===
    135144
    136 Add some notes (or comments!) here. :-)
     145Does that make any sense at all?
     146
     147Add some comments here. =)
    137148
    138149=== References ===
Back to Top