AJAX (according to wikipedia), is a shorthand for "Asynchronous JavaScript and XML", is a web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user requests a change. This is intended to increase the web page's interactivity, speed, and usability. I'm still learning too about this and will put more about this as I learned about it.
I have an example that I got from my friend (Eka Kurniadi). This is a really simple example and easy to learn about how u can use ajax to change your website content dynamically. I have tried it before on this site. It worked great. Except that it suffers almost the same like frame pages (though a little better). Let's see..
- on ajax page, no javascript is working, though u can still force it to work by using eval. But beware, for webmaster that used google adsense. Using eval for google adsense is a violation of google TOS.
- It's harder to manage your site. Search engine could list your ajax page so that it's a mess when people open your page, cause your ajax page loading without your main page. And some robots (especially google) ignores the noindex, nofollow meta tag, so this problem is hard to overcome.
Other than that, it worked great. Your site will loading faster cause it would not load all page everytime with ajax. And it looked nicer too.
So, to share the fun with all of u, just download this and try it