bulletproof ajax

36
Bulletproof Ajax

Upload: adactio

Post on 29-Nov-2014

2.160 views

Category:

Technology


4 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Bulletproof Ajax

Bulletproof

Ajax

Page 2: Bulletproof Ajax

progressiveenhancement

Bulletproof

Page 3: Bulletproof Ajax

structurepresentationbehaviour

contentHTML

CSSJavaScript

Page 4: Bulletproof Ajax

<p>This is the introduction</p><p style="font-weight:bold">This is the introduction</p><p class="intro">This is the introduction</p>.intro { font-weight:bold; }

Page 5: Bulletproof Ajax

<a href="help.html">Need help?</a><a href="help.html"onclick="window.open(this.href); return false;">Need help?</a><a href="help.html"class="help">Need help?</a>

Page 6: Bulletproof Ajax

link.onclick = function(){ window.open(this.href); return false;};

window.onload = function() {

};

// get links with class help// loop through links

Page 7: Bulletproof Ajax

<a href="javascript:...">

<a href="#" onclick= "...">

beware

Page 8: Bulletproof Ajax

Ajaxcommunicating with the server without refreshing

the whole page.

Page 9: Bulletproof Ajax

framesiframeFlashXMLHttpRequest

communicating with the server without refreshing

the whole page.

Page 10: Bulletproof Ajax

XMLHttpRequest

MicrosoftMozillaSafariOpera

IE5

W3C

Page 11: Bulletproof Ajax

browser serverXHRopensend

statusresponseText

XMLHttpRequest

Page 12: Bulletproof Ajax

speed

Page 13: Bulletproof Ajax

thin client

Page 14: Bulletproof Ajax

browser serverdata

processingdisplaying

thin client

Page 15: Bulletproof Ajax

fat client

Page 16: Bulletproof Ajax

browser serverXHRdata

processingdisplaying

fat client

Page 17: Bulletproof Ajax

dumbwaiter

Page 18: Bulletproof Ajax

XMLHttpRequestusing

progressiveenhancement

Page 19: Bulletproof Ajax

Hijax

progressiveenhancement

Page 20: Bulletproof Ajax

browser serverdata

processingdisplaying

Page 21: Bulletproof Ajax

browser serverXHRdata

processingdisplaying

deceptivelyfat client

Page 22: Bulletproof Ajax
Page 23: Bulletproof Ajax

navigationsearch

main contentlog on form

shopping cartfooter

{browser server

Page 24: Bulletproof Ajax

XHR

navigationsearch

main contentlog on form

shopping cartfooter

browser

Page 25: Bulletproof Ajax

implement Ajax at the end

plan for Ajax from the start

paradox?

Page 26: Bulletproof Ajax

pattern recognition

log onadd to cart

rate this

add a comment

search results?

MozillaMozillapagination?

Page 27: Bulletproof Ajax

documents

applications

Page 28: Bulletproof Ajax

design challenges

Page 29: Bulletproof Ajax

WTF?what is happening?what just happened?

Page 30: Bulletproof Ajax

beyond the browserthe back buttonbookmarking

Page 31: Bulletproof Ajax

user testing

Page 32: Bulletproof Ajax

AccessibilityJustAin’t

eXciting

Page 33: Bulletproof Ajax

“Unless a way can be found to notify screen readers of updated content, Ajax techniques cannot be considered accessible.”

Page 34: Bulletproof Ajax

“This Ajax application is usable by screen-reader users some of the time. They aren’t totally shut out, but it isn’t totally easy for them, either.”

Page 35: Bulletproof Ajax

“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”