Document Sample
ajax Powered By Docstoc
					Asynchronous JavaScript and XML (AJAX)
AJAX (Asynchronous JavaScript and XML) could be a combination of many
technologies that are already known HTML, DOM, XML, Javascript and
alternative assistive technologies. AJAX is an acronym for Asynchronous
JavaScript and XML, AJAX parts include:

HTML (HyperText Markup Language) is employed in creating websites and
alternative documents which will be displayed within the browser. HTML is
a global normal specifications set by the globe Wide internet Consortium
(W3C). the most recent version as of this writing is HTML four.01.
XHTML (Extensible HyperText Markup Language), as HTML could be a markup
language, however a mode higher. the most recent version as of this
writing is XHTML a pair of.0.
CSS (Cascading vogue Sheets) could be a easy mechanism to produce the
fashion (eg fonts, colors, spacing, etc.) to internet documents written
in HTML or XML (including many variations of XML languages ??like XHTML
and SVG).
JavaScript is that the scripting language of atiny low, light-weight,
object-oriented and cross-platform. JavaScript cannot run properly as a
standalone language, however rather is meant to be embedded in
merchandise and alternative applications like internet browsers.
DOM (Document Object Model) is an API (Application Program Interface) for
HTML and XML documents. DOM provides a structured illustration of
documents, it's attainable to customise the content and visual
presentation. Basically, DOM connects websites to scripts or programming
XML (Extensible Markup Language) could be a general-purpose markup
language counseled by the W3C to form special-purpose markup document.
the most purpose is to exchange XML knowledge between various systems.
XSLT (Extensible Stylesheet Language Transformations) is an XML-based
language for reworking XML documents. though it refers to the
transformation method, the initial document has not modified however the
new XML document is formed on the premise of an existing document. XSLT
is usually used to remodel XML schema to an online page or PDF document.
XMLHttpRequest object to perform asynchronous knowledge exchange with the
waiter (server) internet. Some Ahax framework and in some things, IFrame
object is employed additionally to the XMLHttpRequest object to exchange
knowledge with internet servant.
JSON (JavaScript Object Notation) could be a laptop knowledge exchange
format that's light-weight and straightforward. blessings compared with
XML JSON is within the method of translation knowledge using Javascript.
Javascript will translate the JSON using the built-in procedure eval ().
In follow, not all of the higher than technologies are used. There are
many communication techniques are used to implement AJAX. Commonly used
technique is to use:

Hidden Frame
These strategies utilize a hidden frame. typically one amongst the frame
is about with the peak / width of zero therefore it doesn't seem on the
page. this is often truly a hidden frame requests to and receive
responses from the server, therefore the frame is out wanting not do a
postback to the server. Javascript is employed to retrieve knowledge and
populate knowledge during this hidden frame.
Hidden IFrame
This methodology is comparable to the hidden frame, the distinction is
simply within the IFrame part that is employed rather than Frame.
XMLHttpRequest object
The method utilizes an ActiveX object (IE) or javascript XMLHttpRequest
object (Mozilla / Firefox, Safari, Opera). This object which will do a
postback to the server and receive a response back of knowledge (not
pages). knowledge obtained from the server and then processed on the
consumer to show the page.
Processing techniques normally there are 2 pages:

Processing yard to the creation / manipulation of the document object
using javascript.
The consumer sends knowledge in an exceedingly format XML / JSON to the
server and acquire knowledge from the server within the sort of an XML /
JSON. knowledge XML / JSON objects are then processed to control
documents using DOM and javascript.
Partial rendering.
In this technique the UI and behavior aren't processed on the consumer
however is processed at the server. purchasers receive UI and then do the
rendering behavior on the a part of sure pages.
The combination of those technologies will improve the performance of
internet applications and a lot of tuned in to user actions. With AJAX
knowledge exchange between consumer and server are lighter as a result of
the sole knowledge that's exchanged (not pages) in order that internet
applications will run faster.

Shared By: