
What is Ajax?
AJAX stands for Asynchronous JavaScript And XML, which allows web pages to update asynchronously by exchanging data to and from the server. This means you can update parts of a web page without reloading the complete web page.
It involves a combination of a browser built-in XMLHttpRequest object, JavaScript, and HTML DOM.
Working of Ajax.
- An event occurs on a web page, such as an initial page load, form submission, link or button click, etc.
- An
XMLHttpRequest
the object is created and sends the request to the server. - The server responds to the request.
- The response is captured and then the server responds back with response data.
What we are going to do?
In this tutorial, we will create a Django model for storing a list of famous web series(name, poster). We will have a form on a webpage and when users start searching for the web series the server will show the results based on users queries, and this all will happen in real-time, something like google does with a google search.
Writing whole code in a medium blog is obviously not an option and definitely not a good idea. So I have created a youtube tutorial for the same, do check that, and by doing so you are also supporting me.
Thank.
Cheers!!!
Happy Coding.