AJAX or Asynchronous JavaScript And XML is a set of web development techniques using web technologies on the client-side to create asynchronous web requests. In simpler words, AJAX allows web pages to be updated asynchronously by exchanging data with a web server behind the scenes. This means that updating parts of a web page is possible, without reloading the whole page. We can make AJAX requests from Django templates using JQuery. With the jQuery AJAX methods, you can request text, HTML, XML, or JSON from a remote server using both HTTP Get and HTTP Post and you can load the external data directly into the selected HTML elements of your web page. In this tutorial, we will learn how to make AJAX HTTP GET and POST requests from Django templates. Pre-Requirements I am assuming you have a basic working knowledge of Django. Therefore, I am not going into the project setup part in case you need help with that I recommend reading the following articles. How To Create A ‘Hello, World!’ Application With Django Building A Blog Application With Django This is a …
The post Django + AJAX : How to use AJAX in Django Templates appeared first on Django Central.
from Planet Python
via read more
No comments:
Post a Comment