Getting Started with Ajax

The commencement by 2005 came across the ascent of a comparatively fresh technology, nicknamed “Ajax” by Jesse James Garrett of Adaptive Path. Ajax means Asynchronous JavaScript and XML. In a nutshell, it’s the function of the nonstandard XMLHttpRequest() object to pass on server-side scripts. It can commit as easily as get data in a mixture of formats, including XML, HTML, and even documents. Ajax’s most imploring feature, nevertheless, is its “asynchronous” nature, which intends it can do all of this without being forced to refresh the page. This lets you to update parts of a page established on user events and allows one among the foundations of Rich Internet Applications (RIA) cited in discussions of “Web 2.0.”

The DOM plays into Ajax in different ways. How you use the DOM depends on how you handle the content delivered from the server. You will be able to address the con­tent as simple text by utilising the responseText attribute of the server response, or you can address it as XML using responseXML. Presuming the content you pull back from the server is an (X)HTML snippet and you have gotten it as responseText, you dismissed content into a particular spot on the page using innerHTML. On the flip side, if the content you pull back is XML and you’ve gotten it as responseXML, you will be able to traverse its DOM, cherry-picking or performing functions on the elements, attributes, and text nodes.

This in all likelihood sounds very puzzling, but it’s pretty comfortable once we check a couple of easy examples.

4 Responses to Getting Started with Ajax
  1. pandora
    July 8, 2010 | 12:11 am

    Your home page is very good, the contents is new very incisive, glad to leave your message here and participate in the discussion. Thanks for that recommendation; it is really helpful for me to say!

    billig ed hardy bekleidung/ed hardy clothes/ed hardy/louis vuitton

  2. […] Getting Started with Ajax : Ajax Blog Ajax Tutorial Examples Share and […]

  3. […] posted here: Getting Started with Ajax : Ajax Blog Ajax Tutorial Examples No […]

  4. […] This post was mentioned on Twitter by Michael Davis. Michael Davis said: RT @emekaokoye: RT @jQueryBot: via @xil3 #ajax #javascript Getting Started with Ajax #php #jquery @myen […]