Results 1 to 2 of 2

Thread: Learn AJAX in 20 minutes

  1. #1
    Platinum+ Member
    Join Date
    Nov 2004

    Learn AJAX in 20 minutes

    Here is a quick overview and example of AJAX in action. Before you begin, this example will only work in FireFox. Youíll have to change few things in the JavaScript for it to work in IE. To download the files used below click here. If you donít have PHP/Apache installed, follow the tutorial I made to install it. The example below assumes you know the basics of PHP, you can learn as you go along if you donít. A good reference is the base PHP website.

    AJAX stands for Asynchronous JavaScript and XML. Conventional web application trasmit information to and from the sever using synchronous requests. This means you fill out a form, hit submit, and get directed to a new page with new information from the server. With AJAX when submit is pressed, JavaScript will make a request to the server, interpret the results and update the current screen. In the purest sense, the user would never know that anything was even transmitted to the server.

    A classic example of AJAX is Google Maps. If you havent noticed, with Google Maps you have the ability to click and drag the map. If you drag the map fast enough, you would see the new regions of the map loading in real-time. This is accomplished using AJAX.

  2. #2
    Triple Platinum Member hotmale's Avatar
    Join Date
    Mar 2004
    Thanks, I'll take a look

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts