ajax introduction presentation

54
Introduction to Ajax Apr 22, 2005 Sang-Kil Park

Upload: thinkphp

Post on 28-Jan-2015

106 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Ajax   Introduction   Presentation

Introduction to Ajax

Apr 22, 2005Sang-Kil Park

Page 2: Ajax   Introduction   Presentation

What is Ajax?

Page 3: Ajax   Introduction   Presentation

What is Ajax?

Asynchronous Javascript And XML

Page 4: Ajax   Introduction   Presentation

What is Ajax?

Asynchronous Javascript And XML

Page 5: Ajax   Introduction   Presentation

The History of Ajax

Page 6: Ajax   Introduction   Presentation

HTTP has some limitations.

Page 7: Ajax   Introduction   Presentation

Microsoft’s Remote ScriptingXML and XSLT

Page 8: Ajax   Introduction   Presentation

IE SpecificWe need more flexible skills.

Page 9: Ajax   Introduction   Presentation

XMLHttpRequest

Page 10: Ajax   Introduction   Presentation

Microsoft first implemented the XMLHttpRequestobject in Internet Explorer 5 for Windows as an ActiveX object.

Page 11: Ajax   Introduction   Presentation

Engineers on the Mozilla project implemented a compatible native version for Mozilla 1.0 (and Netscape 7).

Page 12: Ajax   Introduction   Presentation

Apple has done the same starting with Safari 1.2.

Page 13: Ajax   Introduction   Presentation

W3C, Document Object Model (DOM) Level 3 Load and Save Specification.

XMLHttpRequest object has become a de factostandard.

Page 14: Ajax   Introduction   Presentation
Page 15: Ajax   Introduction   Presentation

Who named Ajax?

Page 16: Ajax   Introduction   Presentation

Apr 1, 2004 April Fool’s Day

GoogleE-Mail Services

1GB Storage

Page 17: Ajax   Introduction   Presentation

Apr 1, 2004 April Fool’s Day

GoogleE-Mail Services

1GB StorageIncredible User Interfaces

Page 18: Ajax   Introduction   Presentation

만우절 뻥?

Page 19: Ajax   Introduction   Presentation
Page 20: Ajax   Introduction   Presentation

Ajax: A New Approach to Web Applications

Feb 18, 2005Jesse James Garrett , adaptive path

Page 21: Ajax   Introduction   Presentation

Defining Ajax

Page 22: Ajax   Introduction   Presentation

Defining Ajaxstandards-based presentation using XHTML and CSSdynamic display and interaction using the Document Object Modeldata interchange and manipulation using XML and XSLTasynchronous data retrieval using XMLHttpRequestand JavaScript binding everything together

Page 23: Ajax   Introduction   Presentation
Page 24: Ajax   Introduction   Presentation
Page 25: Ajax   Introduction   Presentation

Ajax =

Page 26: Ajax   Introduction   Presentation

Ajax =

XMLHttpRequest + asynchronous

Page 27: Ajax   Introduction   Presentation

HTTP is a not reliable Protocol.

Page 28: Ajax   Introduction   Presentation

DHTML Dude, Dave Massy(Microsoft) said:

Ajax is just DHTML + XMLHttp

Page 29: Ajax   Introduction   Presentation

asynchronous

Page 30: Ajax   Introduction   Presentation

Columbus breaking the Egg.

Page 31: Ajax   Introduction   Presentation

Google breaking the XMLHttpRequestand inventing the Ajax.

Page 32: Ajax   Introduction   Presentation
Page 33: Ajax   Introduction   Presentation

true = asynchronous

Page 34: Ajax   Introduction   Presentation

Ajax isn't something you can download. It's an approach.

Page 35: Ajax   Introduction   Presentation

The Future of Ajax

Page 36: Ajax   Introduction   Presentation

Weblications

Dec 20, 2004Adam Rifkin, former Microsoftie

Page 37: Ajax   Introduction   Presentation

Rich Internet Applications(RIA)

Macromedia: Flash, Flash Communications Server, Central, Flex.Microsoft: Active-X, XAMLW3C: SVGGoogle: Ajax(XMLHttpRequest, JavaScript, XML)

Adobe LiveMotion, Laszlo, Java Applet

Page 38: Ajax   Introduction   Presentation

Rich Internet Applications(RIA)

Macromedia: Flash, Flash Communications Server, Central, Flex.Microsoft: Active-X, XAMLW3C: SVGGoogle: Ajax(XMLHttpRequest, JavaScript, XML)

Adobe LiveMotion, Laszlo, Java Applet

Page 39: Ajax   Introduction   Presentation
Page 40: Ajax   Introduction   Presentation

Ajax is the trendy method of developing Web 2.0 apps right now.

Page 41: Ajax   Introduction   Presentation

RubyOnRails 0.11Ajax in under five minutes

Page 42: Ajax   Introduction   Presentation

사용자:

개발자:

Page 43: Ajax   Introduction   Presentation

사용자: 사용하기 쉽다.

개발자: 만들기 쉽다.

Page 44: Ajax   Introduction   Presentation

Win-Win

Page 45: Ajax   Introduction   Presentation

BUT

Page 46: Ajax   Introduction   Presentation

Do not load entire pages.Do not break what the user is focusing on.Do not use it to eliminate acceptance.Do not over-use it.Consider how to handle users that cannot use XMLHttpRequest.

Page 47: Ajax   Introduction   Presentation

Case Study #1

Google Suggest

Page 48: Ajax   Introduction   Presentation
Page 49: Ajax   Introduction   Presentation

Case Study #2

Google Maps

Page 50: Ajax   Introduction   Presentation

NOT Active-X

Page 51: Ajax   Introduction   Presentation

Case Study #3

Flickr

Page 52: Ajax   Introduction   Presentation
Page 53: Ajax   Introduction   Presentation

DEMO

Page 54: Ajax   Introduction   Presentation

References

• Ajax: A New Approach to Web Applications• Dynamic HTML and XML: The XMLHttpRequest Object• Dave Massy's WebLog : Ajax == DHTML + XMLHttp• Hogarth :Columbus breaking the Egg• javascript:xmlhttprequest:behaviour• Weblications• Web 2.0 Weekly Wrap-up• Rails 0.11.0: Ajax, Pagination, Non-vhost, Incoming mail• XMLHttpRequest Usability Guidelines