AJAX - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

AJAX

Description:

Title: AJAX Author: David Fekke Last modified by: David Fekke Created Date: 3/21/2006 1:42:03 AM Document presentation format: On-screen Show Company – PowerPoint PPT presentation

Number of Views:140
Avg rating:3.0/5.0
Slides: 22
Provided by: DavidF222
Category:
Tags: ajax | coldfusion

less

Transcript and Presenter's Notes

Title: AJAX


1
AJAX
  • JaxFusion April 2006
  • David Fekke

2
Who am I?
  • David Fekke
  • Lead Software EngineerData Inteligence Group
  • http//www.fekke.com/blog/
  • davidfekke_at_gmail.com

3
Ajax?
  • What is Ajax?

4
(No Transcript)
5
Just kidding!
  • Asynchronous JavaScript and XML
  • Makes use XMLHttpRequest object in concert with
    the dynamic html and XML

6
Whats all the hype about
  • Fully buzzword compliant
  • Web 2.0
  • Build truly dynamic web applications

7
Some examples
  • Google Maps
  • Gmail
  • Local.live.com

8
History
  • Nothing new here
  • Remote scripting 1998
  • Major differences between IE4 and Netscape 4,
    IFRAME vs LAYER
  • Term coined by Adaptive Path

9
(No Transcript)
10
(No Transcript)
11
XMLHttp Request Object
  • Syntax different depending on browser
  • Mozilla, Safari, Opera new XMLHttpRequest()
  • Internet Explorer new ActiveXObject("Microsoft.XM
    LHTTP")

12
XMLHttp methods and properties
  • XMLHTTPObj.open(get,url,true)
  • .setRequestHeader(name,value)
  • .send()
  • .responseText
  • .responseXML

13
XML methods properties
  • getElementsByTagName()
  • childNode1.nodeValue
  • firstChild.nodeValue
  • UDF getElementTextNS()

14
DHTML methods properties
  • getElementById()
  • innerHTML
  • createElement()
  • appendChild()
  • createTextNode()

15
Transport methods
  • SOAP
  • REST

16
ColdFusion Ajax frameworks
  • Cfajax
  • AjaxCFC
  • JSMX
  • IBM WSAjax

17
Pros
  • Pull back small pieces of data without having to
    reload the whole page.
  • Can save bandwidth
  • More Interactive

18
Cons
  • Back button does not work as expected
  • Security issues
  • Network latency
  • Compatibility, older browsers, JavaScript
    inactivated
  • Accessibility

19
Compatible Browsers
  • IE5
  • Gecko based browsers, Mozilla, Firefox, Netscape
    7.1 . . .
  • KHTML, Konqueror, Safari 1.2
  • Opera 8

20
Non compatible browsers
  • Opera 7 and lower
  • Lynx, text based
  • Visually impaired browsers

21
Resources
  • http//adaptivepath.com
  • http//www.indiankey.com/cfajax/
  • http//developer.apple.com/internet/webcontent/xml
    httpreq.html
  • http//www-128.ibm.com/developerworks/webservices/
    library/ws-wsajax/
Write a Comment
User Comments (0)
About PowerShow.com