A tiny introduction to AJaX

Reviews
Shared by: gregorio11
Stats
views:
42
rating:
not rated
reviews:
0
posted:
11/21/2008
language:
English
pages:
0
A tiny introduction to AJaX paolo.gianrossi@softeco.it 1 It’s all in the Web The World Wide Web started (1991) as a “knowledge container” The huge strength of it is hyperlinks Almost immediately, knowledge contained in the Web could be dynamic (CGI first, then PHP, ASP, etc.) It was a small step to start thinking to “Web Applications” 2 It’s really all in the Web Today you can find: Web sites Web Computing Web applications Web services Web-to-internet bridges (e.g. Webmail) Web 2.0 and social web systems Web has become a synonym of “Internet” Also, some desktop applications use Web technologies for visualization and network interaction 3 It’s really all in the Web Today you can find: Web sites Web Computing Web applications Web services Web-to-internet bridges (e.g. Webmail) Web 2.0 and social web systems Web has become a synonym of “Internet” Also, some desktop applications use Web technologies for visualization and network interaction 4 Interactive web pages are unresponsive and require frequent refreshes We could use Java Applets or Flash, but: You need plugins Search engines do not index such pages Users forced to wait for results We need a way to provide interactive applications online 5 The Web Application nightmare RIAs Rich Internet Applications Web Applications with a Rich User Interface: with elements and behaviors of a “Desktop” application (e.g. Drag&Drop, Auto-update, Input validation, etc.) Extremely hard to impossible to achieve with standard HTML/CSS/Server Side Logic 6 Ajax Asynchronous JAvascript & XML Term coined by Jesse James Garret (Adaptive Path) It’s no XHR Is the key of it all Allows data exchange between a web server and a client without refreshing It has been there since 1998 (as a Microsoft ActiveX in IE) Although it says “XML”, actually any data can be (almost) seamlessy passed (e.g. pics in Google Maps) 8 How it works Classic web application model Each request from the client goes to the server Result from the server is a full HTML+CSS page Browser Client User Interface HTTP Request HTML + CSS Web Server Data store, Backend processing, Legacy systems Server-side 9 How it works AJAX web application model Requests are actually JS calls to the engine Engine requests data to server Engine then updates the presentation layer Browser Client User Interface JavaScript Call Html + CSS Ajax Engine HTTP Request XML Web/XML Server Data store, Backend processing, Legacy systems Server-side 10 Some examples GMail Google Maps Most Google Applications Flickr Amazon A9 A huge lot more... 11 Advantages Wake up from the WebApp nightmare No more white loading screens, usage is smoother Requires less bandwidth Support already built into most modern browsers Allows delivery of desktop-like apps through the Web 12 Disadvantages As most (maybe all) Web technologies, it’s not browser safe (although frameworks and libraries address this problem) Navigation is broken Best practices are still hard to be found For these and more reasons, it’s great for Web Applications but bad for Web Sites 13 Resources http://www.adaptivepath.com/publications/essays/archives/000385.php http://www.webpasties.com/XmlHttpRequest/ http://www.w3schools.com/htmldom/dom_intro.asp http://java.sun.com/developer/technicalArticles/J2EE/AJAX/ http://www.alphaworks.ibm.com/tech/ajaxtk http://en.wikipedia.org/wiki/AJAX 14 Questions? Thank You 15

Related docs
Ajax Book
Views: 443  |  Downloads: 57
AJAX Introduction
Views: 274  |  Downloads: 88
AJAX
Views: 80  |  Downloads: 9
ASPNET_AJAX.
Views: 3  |  Downloads: 1
Introduction to Ajax
Views: 118  |  Downloads: 40
embedded ajax
Views: 1  |  Downloads: 0
TINY
Views: 0  |  Downloads: 0
Professtional Ajax
Views: 194  |  Downloads: 76
ajax
Views: 16  |  Downloads: 8
Ajax
Views: 225  |  Downloads: 8
Webwork and Ajax
Views: 44  |  Downloads: 4
Introduction+to+AJAX
Views: 4  |  Downloads: 2
Other docs by gregorio11
Treaty of Ghent info
Views: 209  |  Downloads: 0
Sale of all corporate assets for stock
Views: 205  |  Downloads: 1
Internet_Venture_Confidentiality_Agreement
Views: 166  |  Downloads: 4
Transcript of Compromise of 1850
Views: 270  |  Downloads: 1
Alternative form
Views: 150  |  Downloads: 0
Option to purchase interest of copartner
Views: 251  |  Downloads: 12
Sample Executive Summary Munninn Tech
Views: 192  |  Downloads: 1
Business interest power to manage and control
Views: 189  |  Downloads: 0
Transcript of Lend Lease Act
Views: 166  |  Downloads: 0
Limited partnership for brokerage of real estate
Views: 399  |  Downloads: 30
Storage Contract
Views: 496  |  Downloads: 26
Sale of business with provisions as to inventory
Views: 164  |  Downloads: 2