• Save
Ajax Presentation for the TSSG
Upcoming SlideShare
Loading in...5
×
 

Ajax Presentation for the TSSG

on

  • 3,650 views

A presentation I did to the TSSG on Ajax (http://paulmwatson.com/journal/2006/05/19/ajax-presentation/).

A presentation I did to the TSSG on Ajax (http://paulmwatson.com/journal/2006/05/19/ajax-presentation/).

Statistics

Views

Total Views
3,650
Views on SlideShare
3,597
Embed Views
53

Actions

Likes
5
Downloads
0
Comments
0

5 Embeds 53

http://paulmwatson.com 29
http://www.techgig.com 18
http://www.slideshare.net 4
http://10.150.200.102 1
http://localhost 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Ajax Presentation for the TSSG Ajax Presentation for the TSSG Presentation Transcript

  • Ajax TSSG Tech Session by Paul Watson (pwatson@tssg.org)
  • Ajax is not…
    • A soccer football team (go Barcelona!)
    • Or a cleaning agent
  • Ajax is…
    • Asynchronous JavaScript + XML
    • A term coined by Jesse James Garret of Adaptive Path
    Not Jesse James the outlaw
  • But
    • Forget what the term stands for
  • Ajax Enables rich user interfaces
  •  
  •  
  •  
  •  
  •  
  • Ajax Web-sites become Web-clients
  • Before Ajax
  • Before Ajax
    • One page per request
    • One URL for one page
    • The whole page updates
  • With Ajax
  • With Ajax
    • Each action has a URL
    • Multiple requests per page
    • You control what updates
  • Each action has a URL
    • Your web-server becomes a data provider
    • It sends snippets of text (XML, HTML, JSON etc.)
    • The client processes the data
  • XML
    • Forget about it
    • JavaScript + XML is painful
    • XHR handles text
    • Use JSON
    • Don’t use HTML fragments
  • XmlHttpRequest
    • The key
    • Fire off HTTP requests without refreshing the browser
    • Microsoft invented it
    • In most browsers (IE, Firefox, Opera, Safari)
    • XHR is easier to say
  • XmlHttpRequest
  • Not for everything
    • Use Ajax wisely
    • Three paths
      • Standard web-site
      • Ajax enhanced web-site
      • Ajax web-client
  • Challenges
    • Chatty clients –request caching & batching
    • Cross-browser – abstracted by libraries
    • Back and forward – not easy
    • Security – same as ever
    • Network issues – client exception handling
    • Browser bottleneck – batching & caching
    • User feedback – visual cues
    • Multiple actions – request prioritisation
    • Accessibility – not easy
  • Tools
    • Few tools
      • Notepad
      • Firefox
      • FireBug
    • Many libraries
      • Prototype, Atlas, Anthem, Dojo etc.
  • Testing
    • Same testing tools you use for your current web-sites
  • + Ajax