go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  What's the big deal to use AJAX?
 
Subject: What's the big deal to use AJAX?
Author: WebSpider
In response to: AJAX + JSP Tutorial
Posted on: 11/10/2009 10:19:59 PM


It's all about user-friendly.

Without AJAX, to get or send information from/to a database or a file on the server with traditional JavaScript, your user will have to trigger certain action like clicking the "Submit" button to send/get the information, wait for the server to respond, then a new page will load with the results. Because the server returns a new page each time the user submits input, traditional web applications can run slowly and tend to be less user-friendly.

With AJAX, your JavaScript communicates directly with the server, a web page can make a request to, and get a response from a web server - without reloading the page. The user can stay on the same page without noticing that scripts request pages, or send data to a server in the background.


 

> On 11/10/2009 10:19:27 PM WebSpider wrote:


What's AJAX?

AJAX stands for Asynchronous JavaScript and XML.

With AJAX, a JavaScript can communicate directly with the server, with the XMLHttpRequest object. With this object, a JavaScript can trade data with a web server, without reloading the page.

AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages.

The AJAX technique makes Internet applications smaller, faster and more user-friendly.




References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.