SlideShare una empresa de Scribd logo
1 de 44
jQuery Mobile
jQuery Mobile Brief History Web Mobile JSVM Why? jQuery jQuery Mobile
Brief History of Web Languages 1991	HTML Tags 1995	HTML 2	LiveScript 1996			JScript, EcmaScript			CSS 1 1997	HTML 3 1997	HTML 4 1998			EcmaScript 1 & 2, JavaScript 1.3	CSS 2 1999								CSS 3 2000	XHTML 1.0	EcmaScript 3, JavaScript 1.5 2001	XHTML 1.1 2005	 		JavaScript 1.6 2006			JavaScript 1.7, jQuery 2008	HTML 5	JavaScript 1.8 2010			EcmaScript 5, JavaScript 1.8.5
Brief History of Mobile 1900 – Reginald Fessenden 1901 – First transatlantic radio transmission Guglielmo Marconi 1946 – First mobile phone  	call
Brief History of Mobile
Brief History of Mobile 1G DynaTAC 8000X
Brief History of Mobile 2G 1G DynaTAC 8000X
Brief History of Mobile 3G Smartphones 2G WAP 1G DynaTAC 8000X
Brief History of Mobile 4G Android iPhone 3G Smartphones 2G WAP 1G DynaTAC 8000X
Culmination of Awesome
With Some Not So Awesome Standards vs. evolution Browser implementations Device differences Desktop Phone Tablet Operating systems App stores
Browsers
Operating Systems
Trend Trends
With Some Not So Awesome iOS Android Blackberry Palm Symbian Windows MeeGo Desktop
With Some Not So Awesome iOS Android Blackberry Palm Tablet 1.0.7 2.0 Froyo Ice Cream Sandwich 1 3G Tablet 1.0.2 7 3.0 4G 4.5 5 1.4 1.2 3GS Gingerbread Honeycomb 4.6 6 Opera Firefox 1.1.99 Mobile 5 1 Symbian^3 Symbian^2 Mobile 6 Safari 1.3 Phone 7 IE Symbian^1 Symbian^4 1.2 Symbian Windows MeeGo Desktop
With Some Not So Awesome iOS Android Blackberry Palm Tablet 1.0.7 2.0 Froyo Ice Cream Sandwich 1 3G Tablet 1.0.2 7 3.0 4G 4.5 5 1.4 1.2 3GS Gingerbread Honeycomb 4.6 6 Opera Firefox 1.1.99 Mobile 5 1 Symbian^3 Symbian^2 Mobile 6 Safari 1.3 Phone 7 IE Symbian^1 Symbian^4 1.2 Symbian Windows MeeGo Desktop
App Stores 111 app stores Android Market App Catalog App Store App World Ovi Store Windows Phone Marketplace Amazon
JSVM
JSVM Cross-browser support DOM manipulation CSS manipulation AJAX Selectors Event handling Utilities Widgets Effects & animation Progressive enhancement/Graceful degredation Plugins
Why jQuery? Free Choose your license Small Active, vibrant community Popular Mature set of widgets Easy to get help
Easy to Get jQuery Help
Why jQuery Mobile? Top Job Trends HTML5 Mobile app Android  Twitter  jQuery Facebook Social Media  iPhone Cloud Computing  Virtualization
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
jQuery Is $ $(document).ready(…) Element selection By Tag name CSS class ID Hierarchy Sizzle W3C Selectors API Themeable
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
<!doctypehtml> <html> <head>     <link rel="stylesheet"href="jquery.mobile.css"/>     <script src="jquery.js"></script>     <script src="jquery.mobile.js"></script> </head>
<div data-role="page"id="page1">     <div data-role="header"> Page 1 title         <a href="index.html"data-icon="check">Save</a>         <a href="index.html"data-icon="delete">Delete</a>     </div>     <div data-role="content"> Content goes here.  Go to <a href="#page2">Page 2</a>.     </div>     <div data-role="footer"> Page 1 footer         <a href="index.html"data-icon="star">Star</a>         <a href="index.html" data-icon="info">Info</a>         <a href="index.html"data-icon="alert">Alert</a>         <a href="index.html"data-icon="plus">Plus</a>         <a href="index.html"data-icon="minus">Minus</a>     </div> </div>
<div data-role="page"id="page2">     <div data-role="header">Page 2 title</div>     <div data-role="content"> Content goes here.         Open <a href="index.html" data-transition="pop" data-rel="dialog">dialog</a>.         <form>             <select data-role="slider">                 <option value="on">On</option>                 <option value="off">Off</option>             </select>         </form>     </div>     <div data-role="footer">Page 2 footer</div> </div>
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
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"
List Views <ul data-role="listview"> Adds > to the right side of links Dividers Thumbnails Count bubbles Nested lists Split button
$.mobile $.mobile.changePage $.mobile.changePage("weblog.php", "slide") $.mobile.pageLoading $.mobile.pageLoading()	// show $.mobile.pageLoading(true)	// hide $.mobile.silentScroll $.mobile.silentScroll(100) $.mobile.addResolutionBreakpoints $.mobile.addResolutionBreakpoints(800) $.mobile.activePage
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
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
Other Events scrollstart scrollstop orientationchange Passes orientation as “portrait” or “landscape” Applies .landscape or .portrait CSS classes
Handling Screen sizes Default breakpoints 320, 480, 768, 1024 .min-width-320px #mainPage, .max-width-480px #mainPage { background-image: url(images/main-bg-320.jpg); } .min-width-480px #mainPage, .max-width-768px #mainPage { background-image:url(images/main-bg-480.jpg); } .min-width-768px #mainPage, .max-width-1024px #mainPage { background:navy; }
Media Queries media="screen" media="print" http://www.w3.org/TR/css3-mediaqueries/ $.mobile.media <script> varretinaDisplay = $.mobile.media("-webkit-min-device-pixel-ratio: 2"); if (retinaDisplay) {   $("#content").css("background-image", "url('images/bg-retina.png')"); } </script>
Demo
Platform Support A Grade iOS Android Windows Phone 7 Blackberry Palm WebOS Opera Mobile Kindle 3 Chrome Desktop Firefox Desktop IE Desktop Opera Desktop
Competitors jQTouch jQuery Plugin Focused on WebKit Sencha Touch Ext JS Titanium Mobile Compiles JavaScript to native iOS and Android XUI Zepto
Gaps & The Future Access to peripherals PhoneGap W3C Device API working group WebIntents
Links http://jquerymobile.com/ http://www.jqmgallery.com/ http://www.ibm.com/developerworks/web/library/wa-jqmobile/
Attributions http://keyolhubey.blogspot.com/2009/11/telecommunication-services-in-maldives.html http://xahlee.blogspot.com/2011/05/html-css-javascript-web-tech-and.html http://en.wikipedia.org/wiki/Motorola_DynaTAC http://en.wikipedia.org/wiki/History_of_radio http://www.flickr.com/photos/zerok/465343120/ http://www.flickr.com/photos/shodan/19555323 4/ http://www.flickr.com/photos/mellis/3019296692/ http://www.flickr.com/photos/29881266@N08/3196645048/

Más contenido relacionado

La actualidad más candente

jQuery Mobile Hour 4
jQuery Mobile Hour 4jQuery Mobile Hour 4
jQuery Mobile Hour 4
Gene Babon
 
jQuery Mobile Hour 4
jQuery Mobile Hour 4jQuery Mobile Hour 4
jQuery Mobile Hour 4
Gene Babon
 

La actualidad más candente (20)

What is jQuery?
What is jQuery?What is jQuery?
What is jQuery?
 
jQuery Mobile UI
jQuery Mobile UIjQuery Mobile UI
jQuery Mobile UI
 
jQuery Mobile: Progressive Enhancement with HTML5
jQuery Mobile: Progressive Enhancement with HTML5jQuery Mobile: Progressive Enhancement with HTML5
jQuery Mobile: Progressive Enhancement with HTML5
 
Adobe & HTML5
Adobe & HTML5Adobe & HTML5
Adobe & HTML5
 
Fundamental JQuery
Fundamental JQueryFundamental JQuery
Fundamental JQuery
 
Real World Web components
Real World Web componentsReal World Web components
Real World Web components
 
Accessibility - A feature you can build
Accessibility - A feature you can buildAccessibility - A feature you can build
Accessibility - A feature you can build
 
Building jQuery Mobile Web Apps
Building jQuery Mobile Web AppsBuilding jQuery Mobile Web Apps
Building jQuery Mobile Web Apps
 
jQuery Conference Chicago - September 2014
jQuery Conference Chicago - September 2014jQuery Conference Chicago - September 2014
jQuery Conference Chicago - September 2014
 
jQuery Mobile Hour 4
jQuery Mobile Hour 4jQuery Mobile Hour 4
jQuery Mobile Hour 4
 
jQuery Mobile Introduction ( demo on EZoapp )
jQuery Mobile Introduction ( demo on EZoapp )jQuery Mobile Introduction ( demo on EZoapp )
jQuery Mobile Introduction ( demo on EZoapp )
 
Harness jQuery Templates and Data Link
Harness jQuery Templates and Data LinkHarness jQuery Templates and Data Link
Harness jQuery Templates and Data Link
 
jQuery Mobile Hour 4
jQuery Mobile Hour 4jQuery Mobile Hour 4
jQuery Mobile Hour 4
 
Building a Simple Mobile-optimized Web App Using the jQuery Mobile Framework
Building a Simple Mobile-optimized Web App Using the jQuery Mobile FrameworkBuilding a Simple Mobile-optimized Web App Using the jQuery Mobile Framework
Building a Simple Mobile-optimized Web App Using the jQuery Mobile Framework
 
J Query Presentation
J Query PresentationJ Query Presentation
J Query Presentation
 
JsViews - Next Generation jQuery Templates
JsViews - Next Generation jQuery TemplatesJsViews - Next Generation jQuery Templates
JsViews - Next Generation jQuery Templates
 
Devoxx 2014-webComponents
Devoxx 2014-webComponentsDevoxx 2014-webComponents
Devoxx 2014-webComponents
 
Don't Worry jQuery is very Easy:Learning Tips For jQuery
Don't Worry jQuery is very Easy:Learning Tips For jQueryDon't Worry jQuery is very Easy:Learning Tips For jQuery
Don't Worry jQuery is very Easy:Learning Tips For jQuery
 
State of jQuery June 2013 - Portland
State of jQuery June 2013 - PortlandState of jQuery June 2013 - Portland
State of jQuery June 2013 - Portland
 
Building Mobile Applications with Ionic
Building Mobile Applications with IonicBuilding Mobile Applications with Ionic
Building Mobile Applications with Ionic
 

Similar a Jquery mobile

HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?
Carlos Ramon
 

Similar a Jquery mobile (20)

Html5
Html5Html5
Html5
 
Mobile web with jQuery Mobile
Mobile web with jQuery MobileMobile web with jQuery Mobile
Mobile web with jQuery Mobile
 
HTML5 Overview
HTML5 OverviewHTML5 Overview
HTML5 Overview
 
HTML5: 5 Quick Wins
HTML5:  5 Quick WinsHTML5:  5 Quick Wins
HTML5: 5 Quick Wins
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09
 
Lecture1 B Frames&Forms
Lecture1 B  Frames&FormsLecture1 B  Frames&Forms
Lecture1 B Frames&Forms
 
IBM Lotus Notes Domino XPages and XPages for Mobile
IBM Lotus Notes Domino XPages and XPages for MobileIBM Lotus Notes Domino XPages and XPages for Mobile
IBM Lotus Notes Domino XPages and XPages for Mobile
 
Web 2.0 &amp; Search Engines
Web 2.0 &amp; Search EnginesWeb 2.0 &amp; Search Engines
Web 2.0 &amp; Search Engines
 
How to Create and Submit an XML SItemap
How to Create and Submit an XML SItemapHow to Create and Submit an XML SItemap
How to Create and Submit an XML SItemap
 
JWU Guest Talk: JavaScript and AJAX
JWU Guest Talk: JavaScript and AJAXJWU Guest Talk: JavaScript and AJAX
JWU Guest Talk: JavaScript and AJAX
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobile
 
Html5 Overview
Html5 OverviewHtml5 Overview
Html5 Overview
 
HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?
 
Ajax
AjaxAjax
Ajax
 
Ajax ons2
Ajax ons2Ajax ons2
Ajax ons2
 
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
 
Browser MVC with YQL and YUI
Browser MVC with YQL and YUIBrowser MVC with YQL and YUI
Browser MVC with YQL and YUI
 
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010
Building Complex GUI Apps The Right Way. With Ample SDK - SWDC2010
 
When Why What of WWW
When Why What of WWWWhen Why What of WWW
When Why What of WWW
 
DG Group - Active Or Passive Website
DG Group - Active Or Passive WebsiteDG Group - Active Or Passive Website
DG Group - Active Or Passive Website
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Jquery mobile

  • 2. jQuery Mobile Brief History Web Mobile JSVM Why? jQuery jQuery Mobile
  • 3. Brief History of Web Languages 1991 HTML Tags 1995 HTML 2 LiveScript 1996 JScript, EcmaScript CSS 1 1997 HTML 3 1997 HTML 4 1998 EcmaScript 1 & 2, JavaScript 1.3 CSS 2 1999 CSS 3 2000 XHTML 1.0 EcmaScript 3, JavaScript 1.5 2001 XHTML 1.1 2005 JavaScript 1.6 2006 JavaScript 1.7, jQuery 2008 HTML 5 JavaScript 1.8 2010 EcmaScript 5, JavaScript 1.8.5
  • 4. Brief History of Mobile 1900 – Reginald Fessenden 1901 – First transatlantic radio transmission Guglielmo Marconi 1946 – First mobile phone call
  • 6. Brief History of Mobile 1G DynaTAC 8000X
  • 7. Brief History of Mobile 2G 1G DynaTAC 8000X
  • 8. Brief History of Mobile 3G Smartphones 2G WAP 1G DynaTAC 8000X
  • 9. Brief History of Mobile 4G Android iPhone 3G Smartphones 2G WAP 1G DynaTAC 8000X
  • 11. With Some Not So Awesome Standards vs. evolution Browser implementations Device differences Desktop Phone Tablet Operating systems App stores
  • 15. With Some Not So Awesome iOS Android Blackberry Palm Symbian Windows MeeGo Desktop
  • 16. With Some Not So Awesome iOS Android Blackberry Palm Tablet 1.0.7 2.0 Froyo Ice Cream Sandwich 1 3G Tablet 1.0.2 7 3.0 4G 4.5 5 1.4 1.2 3GS Gingerbread Honeycomb 4.6 6 Opera Firefox 1.1.99 Mobile 5 1 Symbian^3 Symbian^2 Mobile 6 Safari 1.3 Phone 7 IE Symbian^1 Symbian^4 1.2 Symbian Windows MeeGo Desktop
  • 17. With Some Not So Awesome iOS Android Blackberry Palm Tablet 1.0.7 2.0 Froyo Ice Cream Sandwich 1 3G Tablet 1.0.2 7 3.0 4G 4.5 5 1.4 1.2 3GS Gingerbread Honeycomb 4.6 6 Opera Firefox 1.1.99 Mobile 5 1 Symbian^3 Symbian^2 Mobile 6 Safari 1.3 Phone 7 IE Symbian^1 Symbian^4 1.2 Symbian Windows MeeGo Desktop
  • 18. App Stores 111 app stores Android Market App Catalog App Store App World Ovi Store Windows Phone Marketplace Amazon
  • 19. JSVM
  • 20. JSVM Cross-browser support DOM manipulation CSS manipulation AJAX Selectors Event handling Utilities Widgets Effects & animation Progressive enhancement/Graceful degredation Plugins
  • 21. Why jQuery? Free Choose your license Small Active, vibrant community Popular Mature set of widgets Easy to get help
  • 22. Easy to Get jQuery Help
  • 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
  • 27. <!doctypehtml> <html> <head> <link rel="stylesheet"href="jquery.mobile.css"/> <script src="jquery.js"></script> <script src="jquery.mobile.js"></script> </head>
  • 28. <div data-role="page"id="page1"> <div data-role="header"> Page 1 title <a href="index.html"data-icon="check">Save</a> <a href="index.html"data-icon="delete">Delete</a> </div> <div data-role="content"> Content goes here. Go to <a href="#page2">Page 2</a>. </div> <div data-role="footer"> Page 1 footer <a href="index.html"data-icon="star">Star</a> <a href="index.html" data-icon="info">Info</a> <a href="index.html"data-icon="alert">Alert</a> <a href="index.html"data-icon="plus">Plus</a> <a href="index.html"data-icon="minus">Minus</a> </div> </div>
  • 29. <div data-role="page"id="page2"> <div data-role="header">Page 2 title</div> <div data-role="content"> Content goes here. Open <a href="index.html" data-transition="pop" data-rel="dialog">dialog</a>. <form> <select data-role="slider"> <option value="on">On</option> <option value="off">Off</option> </select> </form> </div> <div data-role="footer">Page 2 footer</div> </div>
  • 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
  • 33. $.mobile $.mobile.changePage $.mobile.changePage("weblog.php", "slide") $.mobile.pageLoading $.mobile.pageLoading() // show $.mobile.pageLoading(true) // hide $.mobile.silentScroll $.mobile.silentScroll(100) $.mobile.addResolutionBreakpoints $.mobile.addResolutionBreakpoints(800) $.mobile.activePage
  • 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
  • 37. Handling Screen sizes Default breakpoints 320, 480, 768, 1024 .min-width-320px #mainPage, .max-width-480px #mainPage { background-image: url(images/main-bg-320.jpg); } .min-width-480px #mainPage, .max-width-768px #mainPage { background-image:url(images/main-bg-480.jpg); } .min-width-768px #mainPage, .max-width-1024px #mainPage { background:navy; }
  • 38. Media Queries media="screen" media="print" http://www.w3.org/TR/css3-mediaqueries/ $.mobile.media <script> varretinaDisplay = $.mobile.media("-webkit-min-device-pixel-ratio: 2"); if (retinaDisplay) { $("#content").css("background-image", "url('images/bg-retina.png')"); } </script>
  • 39. Demo
  • 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
  • 43. Links http://jquerymobile.com/ http://www.jqmgallery.com/ http://www.ibm.com/developerworks/web/library/wa-jqmobile/
  • 44. Attributions http://keyolhubey.blogspot.com/2009/11/telecommunication-services-in-maldives.html http://xahlee.blogspot.com/2011/05/html-css-javascript-web-tech-and.html http://en.wikipedia.org/wiki/Motorola_DynaTAC http://en.wikipedia.org/wiki/History_of_radio http://www.flickr.com/photos/zerok/465343120/ http://www.flickr.com/photos/shodan/19555323 4/ http://www.flickr.com/photos/mellis/3019296692/ http://www.flickr.com/photos/29881266@N08/3196645048/

Notas del editor

  1. June 1946 – first mobile phone callApril 1973 – first handheld mobile phone call Dr Martin Cooper Motorola1982 – Motorola DynaTAC 8000X1980s – 1G networks1990s – 2G networks1999 – WAP 2000 – Smartphones2000s – 3G networks2007 – iPhone2008 – Android 2010s – 4G