SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Downloaden Sie, um offline zu lesen
Multimedia

jQuery Mobile

            Erik Duval
   Dept. Computerwetenschappen
http://www.cs.kuleuven.ac.be/~erikd/
http://www.slideshare.net/erik.duval




2
wat denken jullie?



        3
built on jQuery & jQuery UI




           4
built on jQuery & jQuery UI




           4
http://jquerymobile.com/demos/1.0rc1/
                  5
optimized for touch




         6
mobile events

• tap
• taphold          • orientationchange
• swipe            • scrollstart
• swipeleft        • scrollstop
• swiperight
               7
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
9
<!DOCTYPE html>
<html>
  <head>
  <title>jQuery Mobile: Pages within Pages</title>
  <link rel="stylesheet" href="http://code.jquery.com/
mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
  <script src="http://code.jquery.com/
jquery-1.4.3.min.js"></script>
  <script src="http://code.jquery.com/mobile/1.0a1/
jquery.mobile-1.0a1.min.js"></script>
</head>
                           10
<div data-role="page">
    <div data-role="header">
         <h1>Page Title</h1>
</div>
    <div data-role="content">
         <p>Page content goes here.</p>
</div>
    <div data-role="footer">
         <h4>Page Footer</h4>
    </div>
</div>




                                11
<body>
<div data-role="page" id="home">
  <div data-role="header"><h1>Home</h1></div>
  <div data-role="content"><a href="#about">...</a></div>
</div>
<div data-role="page" id="about"> 
  <div data-role="header"><h1>About This App</h1></div>
  <div data-role="content">...! <a href="#home">Go</a></div>
</div>
</body>
                              12
• “auto-ajax” to pre-fetch content pages
• does not include GPS, canvas, local storage, ...



                       13
transition effects
• slide
• slideup
• slidedown
• pop
• fade
• flip
              14
http://jquery.com/
jQuery


• find something in HTML
• do something to it


                  16
$(“#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
methods

•   Moving Elements: append(), appendTo(), before(), after(),
•   Attributes: css(), attr(), html(), val(), addClass()
•   Events: bind(), trigger(), unbind(), live(), click()
•   Effects: show(), fadeOut(), toggle(), animate()
•   Traversing: find(), is(), prevAll(), next(), hasClass()
•   Ajax: get(), getJSON(), post(), ajax(), load()


                                 18
resources & thx

•   http://jquerymobile.com/

•   http://www.jqmgallery.com/

•   http://www.elated.com/articles/jquery-mobile-what-can-it-do-for-you/

•   http://miamicoder.com/2011/creating-a-website-using-jquery-mobile-part1/

•   http://docs.jquery.com/Tutorials

•   http://www.slideshare.net/1Marc/jquery-essentials




                                               19
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
Questions?
http://erikduval.wordpress.com/
       twitter: @ErikDuval
               21

Weitere ähnliche Inhalte

Was ist angesagt?

Webapps without the web
Webapps without the webWebapps without the web
Webapps without the webRemy Sharp
 
Short intro to JQuery and Modernizr
Short intro to JQuery and ModernizrShort intro to JQuery and Modernizr
Short intro to JQuery and ModernizrJussi Pohjolainen
 
iPhone Appleless Apps
iPhone Appleless AppsiPhone Appleless Apps
iPhone Appleless AppsRemy Sharp
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to JqueryAmzad Hossain
 
Cheap frontend tricks
Cheap frontend tricksCheap frontend tricks
Cheap frontend tricksambiescent
 
An in-depth look at jQuery UI
An in-depth look at jQuery UIAn in-depth look at jQuery UI
An in-depth look at jQuery UIPaul Bakaus
 
Web apps without internet
Web apps without internetWeb apps without internet
Web apps without internetMSDEVMTL
 
Javascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & TricksJavascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & TricksHjörtur Hilmarsson
 
jQtouch, Building Awesome Webapps
jQtouch, Building Awesome WebappsjQtouch, Building Awesome Webapps
jQtouch, Building Awesome WebappsHome
 
Railsbridge javascript
Railsbridge   javascriptRailsbridge   javascript
Railsbridge javascriptp4geoff
 
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tMojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tCosimo Streppone
 
Auto tools
Auto toolsAuto tools
Auto tools祺 周
 
WordPress Third Party Authentication
WordPress Third Party AuthenticationWordPress Third Party Authentication
WordPress Third Party AuthenticationAaron Brazell
 

Was ist angesagt? (20)

Mojolicious
MojoliciousMojolicious
Mojolicious
 
Webapps without the web
Webapps without the webWebapps without the web
Webapps without the web
 
JQuery
JQueryJQuery
JQuery
 
Short intro to JQuery and Modernizr
Short intro to JQuery and ModernizrShort intro to JQuery and Modernizr
Short intro to JQuery and Modernizr
 
iPhone Appleless Apps
iPhone Appleless AppsiPhone Appleless Apps
iPhone Appleless Apps
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
 
Cheap frontend tricks
Cheap frontend tricksCheap frontend tricks
Cheap frontend tricks
 
An in-depth look at jQuery UI
An in-depth look at jQuery UIAn in-depth look at jQuery UI
An in-depth look at jQuery UI
 
Web apps without internet
Web apps without internetWeb apps without internet
Web apps without internet
 
Count to 10 and Say Yes
Count to 10 and Say YesCount to 10 and Say Yes
Count to 10 and Say Yes
 
Javascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & TricksJavascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & Tricks
 
jQuery UI and Plugins
jQuery UI and PluginsjQuery UI and Plugins
jQuery UI and Plugins
 
jQtouch, Building Awesome Webapps
jQtouch, Building Awesome WebappsjQtouch, Building Awesome Webapps
jQtouch, Building Awesome Webapps
 
Railsbridge javascript
Railsbridge   javascriptRailsbridge   javascript
Railsbridge javascript
 
YUI (Advanced)
YUI (Advanced)YUI (Advanced)
YUI (Advanced)
 
Hack with YUI
Hack with YUIHack with YUI
Hack with YUI
 
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tMojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
 
Taking your Web App for a walk
Taking your Web App for a walkTaking your Web App for a walk
Taking your Web App for a walk
 
Auto tools
Auto toolsAuto tools
Auto tools
 
WordPress Third Party Authentication
WordPress Third Party AuthenticationWordPress Third Party Authentication
WordPress Third Party Authentication
 

Andere mochten auch

01 introduction
01 introduction01 introduction
01 introductionrakesyh
 
Bootstrapping iPhone Development
Bootstrapping iPhone DevelopmentBootstrapping iPhone Development
Bootstrapping iPhone DevelopmentThoughtWorks
 
Handout 00 0
Handout 00 0Handout 00 0
Handout 00 0Mahmoud
 
Assignment1 B 0
Assignment1 B 0Assignment1 B 0
Assignment1 B 0Mahmoud
 
iOS Development Introduction
iOS Development IntroductioniOS Development Introduction
iOS Development IntroductionGonzalo Parra
 

Andere mochten auch (8)

01 introduction
01 introduction01 introduction
01 introduction
 
Mobile development
Mobile developmentMobile development
Mobile development
 
Bootstrapping iPhone Development
Bootstrapping iPhone DevelopmentBootstrapping iPhone Development
Bootstrapping iPhone Development
 
Handout 00 0
Handout 00 0Handout 00 0
Handout 00 0
 
Assignment1 B 0
Assignment1 B 0Assignment1 B 0
Assignment1 B 0
 
Mume HTML5 Intro
Mume HTML5 IntroMume HTML5 Intro
Mume HTML5 Intro
 
More! @ ED-MEDIA
More! @ ED-MEDIAMore! @ ED-MEDIA
More! @ ED-MEDIA
 
iOS Development Introduction
iOS Development IntroductioniOS Development Introduction
iOS Development Introduction
 

Ähnlich wie Mume JQueryMobile Intro

jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)Doris Chen
 
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD CombinationLotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD CombinationSean Burgess
 
jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)jeresig
 
jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009Remy Sharp
 
Toutch Jquery Mobile
Toutch Jquery MobileToutch Jquery Mobile
Toutch Jquery MobileJinlong He
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoRob Bontekoe
 
The Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQueryThe Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQuerycolinbdclark
 
Write Less Do More
Write Less Do MoreWrite Less Do More
Write Less Do MoreRemy Sharp
 
SharePoint and jQuery Essentials
SharePoint and jQuery EssentialsSharePoint and jQuery Essentials
SharePoint and jQuery EssentialsMark Rackley
 
jQuery (BostonPHP)
jQuery (BostonPHP)jQuery (BostonPHP)
jQuery (BostonPHP)jeresig
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5Ron Reiter
 
Getting started with jQuery
Getting started with jQueryGetting started with jQuery
Getting started with jQueryGill Cleeren
 
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012crokitta
 

Ähnlich wie Mume JQueryMobile Intro (20)

jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
 
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD CombinationLotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
 
JQuery UI
JQuery UIJQuery UI
JQuery UI
 
jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)
 
jQuery for web development
jQuery for web developmentjQuery for web development
jQuery for web development
 
jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009
 
Toutch Jquery Mobile
Toutch Jquery MobileToutch Jquery Mobile
Toutch Jquery Mobile
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" Domino
 
The Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQueryThe Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQuery
 
Write Less Do More
Write Less Do MoreWrite Less Do More
Write Less Do More
 
Jquery fundamentals
Jquery fundamentalsJquery fundamentals
Jquery fundamentals
 
SharePoint and jQuery Essentials
SharePoint and jQuery EssentialsSharePoint and jQuery Essentials
SharePoint and jQuery Essentials
 
jQuery (BostonPHP)
jQuery (BostonPHP)jQuery (BostonPHP)
jQuery (BostonPHP)
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
 
J query
J queryJ query
J query
 
Getting started with jQuery
Getting started with jQueryGetting started with jQuery
Getting started with jQuery
 
Jquery News Packages
Jquery News PackagesJquery News Packages
Jquery News Packages
 
Web2.0 with jQuery in English
Web2.0 with jQuery in EnglishWeb2.0 with jQuery in English
Web2.0 with jQuery in English
 
Challenges going mobile
Challenges going mobileChallenges going mobile
Challenges going mobile
 
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
 

Mehr von Gonzalo Parra

iOS Development Introduction (MuMe11)
iOS Development Introduction (MuMe11)iOS Development Introduction (MuMe11)
iOS Development Introduction (MuMe11)Gonzalo Parra
 
More! A Social Discovery Tool for Researchers
More! A Social Discovery Tool for ResearchersMore! A Social Discovery Tool for Researchers
More! A Social Discovery Tool for ResearchersGonzalo Parra
 
ARIADNE LOM Application Profile
ARIADNE LOM Application ProfileARIADNE LOM Application Profile
ARIADNE LOM Application ProfileGonzalo Parra
 
Iphone Presentation for MuMe09
Iphone Presentation for MuMe09Iphone Presentation for MuMe09
Iphone Presentation for MuMe09Gonzalo Parra
 

Mehr von Gonzalo Parra (9)

iOS Dev Intro
iOS Dev IntroiOS Dev Intro
iOS Dev Intro
 
TiNYARM @ MATEL WS
TiNYARM @ MATEL WSTiNYARM @ MATEL WS
TiNYARM @ MATEL WS
 
iOS Development Introduction (MuMe11)
iOS Development Introduction (MuMe11)iOS Development Introduction (MuMe11)
iOS Development Introduction (MuMe11)
 
More! @ EC-TEL
More! @ EC-TELMore! @ EC-TEL
More! @ EC-TEL
 
Research2.0
Research2.0Research2.0
Research2.0
 
More! A Social Discovery Tool for Researchers
More! A Social Discovery Tool for ResearchersMore! A Social Discovery Tool for Researchers
More! A Social Discovery Tool for Researchers
 
MACE
MACEMACE
MACE
 
ARIADNE LOM Application Profile
ARIADNE LOM Application ProfileARIADNE LOM Application Profile
ARIADNE LOM Application Profile
 
Iphone Presentation for MuMe09
Iphone Presentation for MuMe09Iphone Presentation for MuMe09
Iphone Presentation for MuMe09
 

Mume JQueryMobile Intro

  • 1. Multimedia jQuery Mobile Erik Duval Dept. Computerwetenschappen http://www.cs.kuleuven.ac.be/~erikd/
  • 4. built on jQuery & jQuery UI 4
  • 5. built on jQuery & jQuery UI 4
  • 8. mobile events • tap • taphold • orientationchange • swipe  • scrollstart • swipeleft  • scrollstop • swiperight 7
  • 9. 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
  • 10. 9
  • 11. <!DOCTYPE html> <html>   <head>   <title>jQuery Mobile: Pages within Pages</title>   <link rel="stylesheet" href="http://code.jquery.com/ mobile/1.0a1/jquery.mobile-1.0a1.min.css" />   <script src="http://code.jquery.com/ jquery-1.4.3.min.js"></script>   <script src="http://code.jquery.com/mobile/1.0a1/ jquery.mobile-1.0a1.min.js"></script> </head> 10
  • 12. <div data-role="page"> <div data-role="header"> <h1>Page Title</h1> </div> <div data-role="content"> <p>Page content goes here.</p> </div> <div data-role="footer"> <h4>Page Footer</h4> </div> </div> 11
  • 13. <body> <div data-role="page" id="home">   <div data-role="header"><h1>Home</h1></div>   <div data-role="content"><a href="#about">...</a></div> </div> <div data-role="page" id="about">    <div data-role="header"><h1>About This App</h1></div>   <div data-role="content">...! <a href="#home">Go</a></div> </div> </body> 12
  • 14. • “auto-ajax” to pre-fetch content pages • does not include GPS, canvas, local storage, ... 13
  • 15. transition effects • slide • slideup • slidedown • pop • fade • flip 14
  • 17. jQuery • find something in HTML • do something to it 16
  • 18. $(“#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
  • 19. methods • Moving Elements: append(), appendTo(), before(), after(), • Attributes: css(), attr(), html(), val(), addClass() • Events: bind(), trigger(), unbind(), live(), click() • Effects: show(), fadeOut(), toggle(), animate() • Traversing: find(), is(), prevAll(), next(), hasClass() • Ajax: get(), getJSON(), post(), ajax(), load() 18
  • 20. resources & thx • http://jquerymobile.com/ • http://www.jqmgallery.com/ • http://www.elated.com/articles/jquery-mobile-what-can-it-do-for-you/ • http://miamicoder.com/2011/creating-a-website-using-jquery-mobile-part1/ • http://docs.jquery.com/Tutorials • http://www.slideshare.net/1Marc/jquery-essentials 19
  • 21. 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