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/
You can get the example project here
http://github.com/sweemeng/Sweemeng-django-example/tree/master/djangoajax/
Clear and concise. Thanks I really needed this
ReplyDelete