1 / 6

Ajax: Asynchronous JavaScript and XML

Ajax: Asynchronous JavaScript and XML. Scott Marks CNT 4104 - Computer Network Programming Florida Gulf Coast University Fort Myers, Florida October 24, 2008. Introduction. Server requests without page reloads Read XML databases Not a new programming or scripting language

damien
Download Presentation

Ajax: Asynchronous JavaScript and XML

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ajax: Asynchronous JavaScript and XML Scott Marks CNT 4104 - Computer Network Programming Florida Gulf Coast University Fort Myers, Florida October 24, 2008

  2. Introduction • Server requests without page reloads • Read XML databases • Not a new programming or scripting language • Uses current web standards: • JavaScript, XML, HTML, DOM, CSS

  3. Details of the Technology (1/2) • Centers around the XMLHttpRequest (XHR) object • Handles communication with the server • Uses GET or POST • Newer browsers have direct support for the XHR object • IE 6 uses an ActiveX object

  4. Details of the Technology (2/2) • The asynchronous aspect permits page refreshing without the user seeing a page reload • Multithreading is not supported but should be considered during development • Possible that an Ajax program can break the browser’s navigation button • Example: slide shows

  5. Outline of a Programming Example • Data auto-refresh • Example: sports scores and in-place editing • Live validation • Example: account sign-up • Suggestions • Example: Google Suggest

  6. Conclusion • A new method of using old technologies • Permits extensive website interactivity • Can offer a significantly better user experience • Easy to learn the basics

More Related