Tuesday, August 31, 2010

Doing ajax with django models serialization: jquery part

We have finished(somewhat) with our json source, now we can do ajax. With the help of jquery, we can use the data source to create something interactive. One of the key ingredient is the jquery ajax function, there is a few such as, $.post, $.get, $.getJSON etc. Here I use $.getJSON, because

Lets start with load data to a table from a json source last post. 
Loading data into table alone is not that exciting, and you can do that using django templates, but this shows a example of loading data using json

You can get the example project here
http://github.com/sweemeng/Sweemeng-django-example/tree/master/djangoajax/

1 comment:

  1. Anonymous4:32 AM

    Clear and concise. Thanks I really needed this

    ReplyDelete