Ajaxism

974 views

Published on

A (really) quick tutorial for XML and Ajax (Hands-on session)

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
974
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ajaxism

  1. 1. AJAXISMA (very) quick tutorial on XML and AJAX
  2. 2. Outline XML Alternatives to XML Ajax Ajax – Hands on
  3. 3. XML - Definition What do we know already? Stands for “Extensible Markup Language” Eg: <note> <to>Anna University</to> <from>Narendran</from> <heading>Requesting pass mark</heading> <body>I have applied for reval. Pls2pass! </body> </note>
  4. 4. XML – Real definition Data representation language. Used to transport and store data (not for displaying) Eg: <note> <to>Anna University</to> <from>Narendran</from> <heading>Requesting pass mark</heading> <body>I have applied for reval. Pls2pass! </body> </note> Represents data – From Narendran to Anna University, Subject is Requesting Pass Mark, with content “I have applied for reval. Pls2pass! “
  5. 5. Where do they use XML? Separates data from HTML – XML cannot be used in the place of HTML. Simplifies data sharing – XML is plaintext Simplifies data transport - No compatibility issues. Simplifies platform changes – Eg: Implementation language changes, OS changes, browser changes etc. Make data more available to different clients (handhelds to supercomputers)
  6. 6. XMLHttpRequest A class in JavaScript that allows making XML based HTTP calls. xmlhttp=new XMLHttpRequest(); Used to exchange data with the server behind the scenes What can it do for me?  Update a page without reloading.  Send data to a server in the background. Demo – Access an XML file using XMLHttpRequest Demo – Login module using Ajax

×