7. mobile events
• tap
• taphold • orientationchange
• swipe • scrollstart
• swipeleft • scrollstop
• swiperight
7
8. progressive enhancement
• ‘graceful degradation’
• A-grade – Full enhanced experience with Ajax-
based animated page transitions.
• B-grade – Enhanced experience except without
Ajax navigation features.
• C-grade – Basic, non-enhanced HTML experience
that is still functional
• Not Officially Supported – May work, but haven’t
been thoroughly tested or debugged
8
17. $(“#content”) get element with id content
$(“li:first”) get first list item
$(“tr:odd”) get odd numbered table rows
$(“a[target=_blank]”) get all links who’s target is “_blank”
$(“form[id^=step]”) get all forms who’s id starts with “step”
Chaining
$(“#myId, .myClass, table”)
$(“div”).addClass(“redbox”).fadeOut();
$(...).html(function(i){return “<p>hello “ + i + “</p>”;});
17
20. Over to ... you!
Start from
http://miamicoder.com/2011/creating-a-website-using-
jquery-mobile-part1/
or
http://www.elated.com/articles/jquery-mobile-what-can-
it-do-for-you/
20