23. Why jQuery Mobile? Top Job Trends HTML5 Mobile app Android Twitter jQuery Facebook Social Media iPhone Cloud Computing Virtualization
24. jQuery Started Aug 2006 31 KB Used by 43% of top 10,000 most visited sites Licenses: GPL or MIT Ecosystem jQuery Core jQuery UI jQuery Mobile QUnit Sizzle Plugins
25. jQuery Is $ $(document).ready(…) Element selection By Tag name CSS class ID Hierarchy Sizzle W3C Selectors API Themeable
26. jQuery Mobile Started October 2010 Currently 1.0 Beta 2 Feature complete Licenses: GPL or MIT 26 KB Markup driven Leverages HTML5 data- attributes Themeable Accessibility (WAI-ARIA) Touch events Touch focused UI
30. Transitions slide Slide right to left (default) slideup Slide from the bottom to the top slidedown Slide from the top to the bottom pop Expand the new page for popups and dialogs fade Fade the new page in flip Flip the old and new page
31. Roles Buttons data-role="button" submit, reset, button, or image Collapsible content data-role="collapsible" data-state="collapsed" Form Automatically replaces form elements data-role="slider" <div data-role="fieldcontain"> - select <div data-role="controlgroup"> - grouped buttons Dialogs data-rel="dialog"
32. List Views <ul data-role="listview"> Adds > to the right side of links Dividers Thumbnails Count bubbles Nested lists Split button
34. Touch Events tap taphold swipe Vertically 20 or fewer pixels Horizontally 30 or more pixels Swipeleft Left 30 or more pixels swiperight Right 30 or more pixels
35. Page Events pagebeforehide on the page being transitioned from, before the transition between pages starts pagebeforeshow on the page being transitioned to, before the transition between pages starts pagehide on the page being transitioned from, after the transition finishes pageshow on the page being transitioned to, after the transition finishes
36. Other Events scrollstart scrollstop orientationchange Passes orientation as “portrait” or “landscape” Applies .landscape or .portrait CSS classes
40. Platform Support A Grade iOS Android Windows Phone 7 Blackberry Palm WebOS Opera Mobile Kindle 3 Chrome Desktop Firefox Desktop IE Desktop Opera Desktop
41. Competitors jQTouch jQuery Plugin Focused on WebKit Sencha Touch Ext JS Titanium Mobile Compiles JavaScript to native iOS and Android XUI Zepto
42. Gaps & The Future Access to peripherals PhoneGap W3C Device API working group WebIntents