Ajax, javascript and XML

What is AJAX?  According to wikipedia “Ajax (shorthand for asynchronous JavaScript and XML) 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 and LAMP, Ajax is not a technology in itself, but a group of technologies. Ajax uses a combination of HTML and CSS to mark up and style information. The DOM 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.” So basically AJAX is a technology which can be accessed by javascript using the DOM. It will load information and update information dynamically without having to reload the whole page.

What is javascript? In my definition of javascript, its a script based language, which is performed on the client side to create dynamic and interactive data on the web. According to wiki, the definition of javascript is “an implementation of the ECMAScript language standard and is typically used to enable programmatic access to computational objects within a host environment. It can be characterized as a prototype-based object-oriented[4] scripting language that is dynamic, weakly typed and has first-class functions. It is also considered a functional programming language[1] like Scheme and OCaml because it has closures and supports higher-order functions.” Javascript can be used to create pop-ups window, to either alert users of certain aspect of your website, or to just simply show an ad. Javascript can also be used to create hacks to override and fix css styling to help cross browser compatibility  issues. Javascript can also be used to store cookies in users computer. Javascript is very powerful and with the addition of libraries such as JQuery and Mootools and others, it even makes life that much easier for web developers to design and create their website with ease, and to know they have the entire communities help doing so.

What is XML? According to wiki “XML (Extensible Markup Language) is a set of rules for encoding documents electronically. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards.” I use XML to add data to my website using PHP. XML is an universal language and can be understood by almost all languages, wether its php, .net, ruby, javascript etc.

Published in: on April 21, 2010 at 11:16 pm  Leave a Comment  

The URI to TrackBack this entry is: https://faiyazhaider.wordpress.com/2010/04/21/ajax-javascript-and-xml/trackback/

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: