# 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
    

![](https://web.archive.org/web/20200814102848im_/https://i0.wp.com/salmanually.com/wp-content/uploads/2018/08/Screenshot-162.png?resize=580%2C326 align="left")

parent.html

1. source.php
    

![](https://web.archive.org/web/20200814102848im_/https://i2.wp.com/salmanually.com/wp-content/uploads/2018/08/Screenshot-163.png?w=696 align="left")

source.php

Don’t worry the source code of these two files are available [**HERE**](https://web.archive.org/web/20200814102848/https://github.com/hotheadhacker/simpleAJAXdemo) 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](https://web.archive.org/web/20200814102848/https://salmanually.com/2018/08/28/learn-ajax-in-5-mins/)
