Learn Ajax in 5 Mins

Photo by Joan Gamell on Unsplash

Learn Ajax in 5 Mins

Yes, you heard it right! You can learn AJAX in 5 mins provided you have little concept of JavaScript and jQuery.

The method I am sharing with you right now will probably boot your AJAX skills.

Just for the record:

AJAX is a developer’s dream because you can:

  • Update a web page without reloading the page

  • Request data from a server – after the page has loaded

  • Receive data from a server – after the page has loaded

  • Send data to a server – in the background

So without wasting much more time let’s get our hands dirty with some AJAX 🙂

Things You need:

  1. MAIN PAGE – A page from where you will send request to another page without reloading the current one or navigating to other page

  2. SOURCE PAGE – It’s generally written in server side scripting language eg. PHP

Now We are done, the key part is server side scripting language needs fully executed just like loading new web page but it doesn’t look dynamic so AJAX comes into play.

JUST FOCUS FOLLOWING 2 PARTS TO GET ENOUGH ABOUT AJAX.

  1. parentpage.html

parent.html

  1. source.php

source.php

Don’t worry the source code of these two files are available HERE on my github repository!

If you have any query or suggestions Drop your responses below in comments. I will be happy to help you 🙂

This article was recovered from my old blog salmanually.com and reposted here on (26/06/2022) Check orgiginal Archive.org - wayback version of this post

Did you find this article valuable?

Support Salman Qureshi's Blog by becoming a sponsor. Any amount is appreciated!