Changes between Version 6 and Version 7 of AJAX/Dojo/RefactoredFormSubmit


Ignore:
Timestamp:
Feb 11, 2007, 10:34:30 AM (18 years ago)
Author:
erob@…
Comment:

arggh, post rejected so have to start over...

Legend:

Unmodified
Added
Removed
Modified
  • AJAX/Dojo/RefactoredFormSubmit

    v6 v7  
    11
     2=== Introduction ===
    23
    34Here'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 expected to use python-cjson for receiving JSON data.
     
    56My initial objective was to display validation errors without doing a page-refresh, by using JSON
    67for carrying errors (or whatever else you could possibly imagine) back to the client browser.
     8
     9=== The server view ===
    710
    811First thing first, lets write the server view, as its really important to make the forms working
     
    3033}}}
    3134
     35=== The client view ===
    3236
    33 We could try to arrange the client code to fit into one, unportable template chunk, however it's
     37Now that the server view is writtent, we could try next to arrange the client code to fit into one, unportable template chunk, however it's
    3438usually best to split the work in smaller pieces, at least for being nice to the maintainers (You). :-)
    3539
    36 So let's move on in writing our own Dojo template, where we will make an abstraction of all our applied
    37 Dojo concepts.
     40So let's move on in writing our own Dojo template, where we will make an abstraction of all our applied Dojo concepts.
    3841
    3942Quite frankly, that part is going straight-forward, as we're only writing HTML:
    4043{{{
     44#!text/html
    4145<script type="text/javascript">
    4246    djConfig = {
Back to Top