0% found this document useful (0 votes)
24 views

AJAX

AJAX allows web pages to asynchronously exchange small amounts of data with a server without reloading the entire page. It uses a combination of technologies like JavaScript, DOM, XMLHttpRequest, XML, and CSS. Some common uses of AJAX include real-time form validation, autocompletion, loading additional content on demand, and updating parts of a page without reloading. AJAX interactions make web applications feel more like desktop applications.

Uploaded by

Kiran Sg
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

AJAX

AJAX allows web pages to asynchronously exchange small amounts of data with a server without reloading the entire page. It uses a combination of technologies like JavaScript, DOM, XMLHttpRequest, XML, and CSS. Some common uses of AJAX include real-time form validation, autocompletion, loading additional content on demand, and updating parts of a page without reloading. AJAX interactions make web applications feel more like desktop applications.

Uploaded by

Kiran Sg
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

AJAX

Jackson Abraham A
1025917
1st MCA
AJAX (programming)
AJAX (shorthand for Asynchronous JavaScript and XML)
AJAX is not a new programming language, but a new way to use existing standards. It is the
art of
exchanging data with a server, and update parts of a web page - without reloading the whole
page.
AJAX is a group of interrelated web development techniques used on the client-side to create
interactive web applications.
With Ajax, web applications can retrieve data from the server asynchronously in the
background
without interfering with the display and behavior of the existing page. The use of Ajax
techniques
has led to an increase in interactive or dynamic interfaces on web pages. Data is usually
retrieved
using the XMLHttpRequest object. Despite the name, the use of XML is not actually
required, nor
do the requests need to be asynchronous.
Like DHTML (Dynamic HTML) and LAMP (Linux, Apache HTTP Server, MySQL and Perl/PHP/Python),
Ajax is not
a technology in itself, but a group of technologies. Ajax uses a combination of HTML and
CSS
(Cascading Style Sheets) to mark up and style information. The DOM (Document Object Model) is
accessed with JavaScript to dynamically display, and to allow the user to interact with, the
information presented. JavaScript and the XMLHttpRequest object provide a method for
exchanging data asynchronously between browser and server to avoid full page reloads.
What is AJAX?
AJAX allows web pages to be updated asynchronously by exchanging small amounts of data
with
the server behind the scenes. This means that it is possible to update parts of a web page,
without
reloading the whole page.
Classic web pages, (which do not use AJAX) must reload the entire page if the content
should
change.
Examples of applications using AJAX: Google Maps, Gmail, Youtube, and Facebook tabs.

AJAX is Based on Internet Standards


AJAX is based on internet standards, and uses a combination of:
JavaScript/DOM (to display/interact with the information)
XMLHttpRequest object (to exchange data asynchronously with a server)
XML (often used as the format for transferring data)
CSS (to style the data)
AJAX applications are browser and platform independent.
Some uses for Ajax interactions are the following:
• Real-time form data validation : Form data such as user IDs, serial numbers, postal
codes,
or even special coupon codes that require server-side validation can be validated in a form
before the user submits a form.
• Autocompletion : A specific portion of form data such as an email address, name, or city
name may be autocompleted as the user types.
• Load on demand : Based on a client event, an HTML page can fetch more data in the
background, allowing the browser to load pages more quickly.
• Sophisticated user interface controls and effects : Controls such as trees, menus, data
tables, rich text editors, calendars, and progress bars allow for better user interaction and
interaction with HTML pages, generally without requiring the user to reload the page.
• Refreshing data and server push : HTML pages may poll data from a server for up-to-
date
data such as scores, stock quotes, weather, or application-specific data. A client may use
Ajax techniques to get a set of current data without reloading a full page. Polling is not the
most effecient means of ensuring that data on a page is the most current. Emerging
techniques such as Comet are being developed to provide true server-side push over HTTP
by keeping a persistent connection between the client and server. See this blog entry on
Comet using Grizzly for more on the development of server push with Java technology.
• Partial submit : An HTML page can submit form data as needed without requiring a full
page refresh.
• Mashups : An HTML page can obtain data using a server-side proxy or by including an
external script to mix external data with your application's or your service's data. For
example, you can mix content or data from a third-party application such as Google Maps
with your own application.
• Page as an application : Ajax techniques can be made to create single-page applications
that
look and feel much like a desktop application. See the article on the use of Ajax and portlets
for more on how you can use portlet applications today.
Though not all-inclusive, this list shows that Ajax interactions allow web applications to do
much more than they have done in the past.

You might also like