开发者

Good guide to using Ajax in a Django project? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, 开发者_开发百科or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

I'm working on a Django project that will need jQuery, jQuery UI, and one or two more JavaScript libraries. What good tutorial or reference can be recommend on how to make JavaScript and Django talk with each other? (that is, handling XMLHTTPRequests, passing information from a Django model to a JavaScript function, etc.)


Using Ajax in Django is just like any other web request that comes to your Django application. You need to route the request to your controller which has to provide some HTML to jQuery's Ajax handler, that is, X function(data){}.

For more understanding, see Ajax in Django with jQuery.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜