Changes between Version 11 and Version 12 of AjaxDjangoDojoForm
- Timestamp:
- Jun 5, 2006, 8:41:43 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AjaxDjangoDojoForm
v11 v12 4 4 5 5 6 == What do you need :==6 == What do you need == 7 7 8 8 - Django 9 9 - Dojo (v0.3) [http://dojotoolkit.org/] an open source javascript toolkit. 10 - Simple_Json (v1.3) [http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.3/docs/index.html] used for java <-> python communication.10 - Simple_Json (v1.3) [http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.3/docs/index.html] used for javascript <-> python communication. 11 11 12 12 13 13 == What do we want to achieve == 14 14 I will use the model of my current website, a recipe one. 15 When a registred user see the details of a recipe, he can mark it or update hismark by selecting a small drop down list.16 That's nice but when he clicks ok the whole page is reloaded :/ let'suse some Ajax to make it transparent and for the fancy effect15 When a registred user see the details of a recipe, the user can mark it or update their mark by selecting a small drop down list. 16 But when the user clicks ok the whole page is reloads. We will use some Ajax to make it transparent and for the fancy effect 17 17 we can add fading status message like "Your mark has been updated". 18 18 The select box proposes a mark from 1 to 5, it is actually a form which is sent to the server via POST, which in django link to a method … … 159 159 You can also have a look at the screenshot here : [http://ozserver.no-ip.com/~greg/images/ajaxdjango.png] 160 160 161 == Dreamhost and Simplejson :==161 == Dreamhost and Simplejson == 162 162 163 163 If you are using dreamhost for hosting please be aware that simplejson is not installed. 164 Instead install the source of simplejson in a folder in your home directory eg /proz/json/simple_json164 Instead you will have to install the source of simplejson in a folder in your home directory eg /proz/json/simple_json 165 165 the simple_json directory contains the required __init__.py for it to be loaded as a python module. 166 166