SlideShare a Scribd company logo
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

More Related Content

What's hot (20)

Mojolicious
MojoliciousMojolicious
Mojolicious
Lenz Gschwendtner
 
Webapps without the web
Webapps without the webWebapps without the web
Webapps without the web
Remy Sharp
 
JQuery
JQueryJQuery
JQuery
Jussi Pohjolainen
 
Short intro to JQuery and Modernizr
Short intro to JQuery and ModernizrShort intro to JQuery and Modernizr
Short intro to JQuery and Modernizr
Jussi Pohjolainen
 
iPhone Appleless Apps
iPhone Appleless AppsiPhone Appleless Apps
iPhone Appleless Apps
Remy Sharp
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
Amzad Hossain
 
Cheap frontend tricks
Cheap frontend tricksCheap frontend tricks
Cheap frontend tricks
ambiescent
 
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
Paul Bakaus
 
Web apps without internet
Web apps without internetWeb apps without internet
Web apps without internet
MSDEVMTL
 
Count to 10 and Say Yes
Count to 10 and Say YesCount to 10 and Say Yes
Count to 10 and Say Yes
John Henry Donovan
 
Javascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & TricksJavascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & Tricks
Hjörtur Hilmarsson
 
jQuery UI and Plugins
jQuery UI and PluginsjQuery UI and Plugins
jQuery UI and Plugins
Marc Grabanski
 
jQtouch, Building Awesome Webapps
jQtouch, Building Awesome WebappsjQtouch, Building Awesome Webapps
jQtouch, Building Awesome Webapps
Home
 
Railsbridge javascript
Railsbridge   javascriptRailsbridge   javascript
Railsbridge javascript
p4geoff
 
YUI (Advanced)
YUI (Advanced)YUI (Advanced)
YUI (Advanced)
Jai Santhosh
 
Hack with YUI
Hack with YUIHack with YUI
Hack with YUI
Jai Santhosh
 
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
Cosimo Streppone
 
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
Jens-Christian Fischer
 
Auto tools
Auto toolsAuto tools
Auto tools
祺 周
 
WordPress Third Party Authentication
WordPress Third Party AuthenticationWordPress Third Party Authentication
WordPress Third Party Authentication
Aaron Brazell
 
Webapps without the web
Webapps without the webWebapps without the web
Webapps without the web
Remy Sharp
 
Short intro to JQuery and Modernizr
Short intro to JQuery and ModernizrShort intro to JQuery and Modernizr
Short intro to JQuery and Modernizr
Jussi Pohjolainen
 
iPhone Appleless Apps
iPhone Appleless AppsiPhone Appleless Apps
iPhone Appleless Apps
Remy Sharp
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
Amzad Hossain
 
Cheap frontend tricks
Cheap frontend tricksCheap frontend tricks
Cheap frontend tricks
ambiescent
 
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
Paul Bakaus
 
Web apps without internet
Web apps without internetWeb apps without internet
Web apps without internet
MSDEVMTL
 
Javascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & TricksJavascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & Tricks
Hjörtur Hilmarsson
 
jQtouch, Building Awesome Webapps
jQtouch, Building Awesome WebappsjQtouch, Building Awesome Webapps
jQtouch, Building Awesome Webapps
Home
 
Railsbridge javascript
Railsbridge   javascriptRailsbridge   javascript
Railsbridge javascript
p4geoff
 
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
Cosimo Streppone
 
Auto tools
Auto toolsAuto tools
Auto tools
祺 周
 
WordPress Third Party Authentication
WordPress Third Party AuthenticationWordPress Third Party Authentication
WordPress Third Party Authentication
Aaron Brazell
 

Viewers also liked (8)

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

Similar to 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)
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 Combination
Sean Burgess
 
JQuery UI
JQuery UIJQuery UI
JQuery UI
Gary Yeh
 
jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)
jeresig
 
jQuery for web development
jQuery for web developmentjQuery for web development
jQuery for web development
iFour Institute - Sustainable Learning
 
jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009
Remy Sharp
 
Toutch Jquery Mobile
Toutch Jquery MobileToutch Jquery Mobile
Toutch Jquery Mobile
Jinlong 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" Domino
Rob 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 jQuery
colinbdclark
 
Write Less Do More
Write Less Do MoreWrite Less Do More
Write Less Do More
Remy Sharp
 
Jquery fundamentals
Jquery fundamentalsJquery fundamentals
Jquery fundamentals
Salvatore Fazio
 
SharePoint and jQuery Essentials
SharePoint and jQuery EssentialsSharePoint and jQuery Essentials
SharePoint and jQuery Essentials
Mark Rackley
 
jQuery (BostonPHP)
jQuery (BostonPHP)jQuery (BostonPHP)
jQuery (BostonPHP)
jeresig
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
Ron Reiter
 
J query
J queryJ query
J query
Manav Prasad
 
Getting started with jQuery
Getting started with jQueryGetting started with jQuery
Getting started with jQuery
Gill Cleeren
 
Jquery News Packages
Jquery News PackagesJquery News Packages
Jquery News Packages
UC Berkeley Graduate School of Journalism
 
Web2.0 with jQuery in English
Web2.0 with jQuery in EnglishWeb2.0 with jQuery in English
Web2.0 with jQuery in English
Lau Bech Lauritzen
 
Challenges going mobile
Challenges going mobileChallenges going mobile
Challenges going mobile
Christian Rokitta
 
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
crokitta
 
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 Combination
Sean 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 2009
Remy Sharp
 
Toutch Jquery Mobile
Toutch Jquery MobileToutch Jquery Mobile
Toutch Jquery Mobile
Jinlong 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" Domino
Rob 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 jQuery
colinbdclark
 
Write Less Do More
Write Less Do MoreWrite Less Do More
Write Less Do More
Remy Sharp
 
SharePoint and jQuery Essentials
SharePoint and jQuery EssentialsSharePoint and jQuery Essentials
SharePoint and jQuery Essentials
Mark Rackley
 
jQuery (BostonPHP)
jQuery (BostonPHP)jQuery (BostonPHP)
jQuery (BostonPHP)
jeresig
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
Ron Reiter
 
Getting started with jQuery
Getting started with jQueryGetting started with jQuery
Getting started with jQuery
Gill 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 2012
crokitta
 

More from Gonzalo Parra (9)

iOS Dev Intro
iOS Dev IntroiOS Dev Intro
iOS Dev Intro
Gonzalo Parra
 
TiNYARM @ MATEL WS
TiNYARM @ MATEL WSTiNYARM @ MATEL WS
TiNYARM @ MATEL WS
Gonzalo Parra
 
iOS Development Introduction (MuMe11)
iOS Development Introduction (MuMe11)iOS Development Introduction (MuMe11)
iOS Development Introduction (MuMe11)
Gonzalo Parra
 
More! @ EC-TEL
More! @ EC-TELMore! @ EC-TEL
More! @ EC-TEL
Gonzalo Parra
 
Research2.0
Research2.0Research2.0
Research2.0
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 Researchers
Gonzalo Parra
 
MACE
MACEMACE
MACE
Gonzalo Parra
 
ARIADNE LOM Application Profile
ARIADNE LOM Application ProfileARIADNE LOM Application Profile
ARIADNE LOM Application Profile
Gonzalo Parra
 
Iphone Presentation for MuMe09
Iphone Presentation for MuMe09Iphone Presentation for MuMe09
Iphone Presentation for MuMe09
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 Researchers
Gonzalo Parra
 
ARIADNE LOM Application Profile
ARIADNE LOM Application ProfileARIADNE LOM Application Profile
ARIADNE LOM Application Profile
Gonzalo Parra
 
Iphone Presentation for MuMe09
Iphone Presentation for MuMe09Iphone Presentation for MuMe09
Iphone Presentation for MuMe09
Gonzalo Parra
 

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