What is AJAX?

Posted by guru in September 20th, 2007
Published in Quick Info, Javascript, PHP

Pages: 1 2 »

AJAX is a soccer club in the dutch league. :D

You might have heard a thousand times that big websites like gmail or live mail uses AJAX technology. You might think its a component like flash or java applet. Infact its about 5 lines of javascript. So, lets reduce it’s name from AJAX technology to AJAX technique.

HINT: Do you know about HTML inline frames , if you have ever used an inline frame on your webpage, your are one step ahead to understand the core concept of AJAX technique.

If you don’t know about dynamic web pages and server sided scripts like PHP, you will not understand what AJAX means, an article is soon coming for this.

Main concept (You can start reading here):
The power of AJAX is unbelievable, let me show you an example.
Imagine that you are writing a simple file manager script. While loading, the files are listed on the web page like this:

What is AJAX?

[download source code]

Our first objective here is to ’send delete command to the server’ without reloading the web page like ‘filemanager.php?action=delete&file=myfile.zip’ or loading other pages, when user clicks on ‘Delete’.

The second objective is to remove the deleted file from the list without refreshing the whole web page.

Right! you guessed it, JavaScript!

A perfect synchronizations of all the actions are vital in such application:

  1. The command must reach the server without refreshing our web page.
  2. Following that, our web page must wait for the server’s response.
  3. Based on the server’s response, the web page must refresh only a part of it that requires updating and also display an appropriate status message.

And with AJAX, its possible!

Pages: 1 2 »

3 comments so far.

Follow-up this post comment rss or leave a trackback
mygif
Dummy wrote,

What is PHP? lol

mygif
john wrote,

Hi again,

hey is using ajax search engine friendly? I want to ajaxify my whole blog:D

thanks for great tutorial.

mygif
guru wrote,

Hey john,
“ajaxify my whole blog”,
If you are talking only about using AJAX for dynamic components like login, registration, you won’t have any problems with SEO.

Can you be more clear on this?

Leave A Reply Below

for "What is AJAX?"

 Username (*required)

 Email Address (*hidden)

 Website (*optional)

 Website (*optional)

Social Feeds

Topics Search

Main Translator

French

German version

Spanish version

Italian version

Categories

Recent Articles

Recent Posts

Recent Commentes

August 2008
M T W T F S S
« Oct    
 123
45678910
11121314151617
18192021222324
25262728293031

Blogroll

Navigation

Share!

Add to Technorati Favorites
Add to Google Add to Windows Live