So by now you all know what AJAX is about and how it works. This article isn't going to blab on about the technical side of AJAX or show you graphs on how it works.
What I'm going to is show you how exactly you can implement AJAX on your website or web-based appliaction using a simple javascript library called jQuery. What we want to create is a link on your page that ends a request to get data from a file and then returns that data inside a DOM element on your page. Let's get started.
First of all you need to download the jQuery library and stick it in the eader of your website / application.
Next we want to make a common javascript file that you can also put in the header. For my applications I call this file init.js but you can call it anything you want. Make sure the .js file is included below the jQuery sauce file.
Here is the first piss of javascript that you can put in this file.