SlideShare una empresa de Scribd logo
1 de 32
Descargar para leer sin conexión
Hi! I’m David
About me:
• Senior Web Developer, Southern Bancorp
• Multiple disciplines including: PHP, Javascript, Objective-C ,
  MySQL, CSS, HTML, Graphic Design, WordPress and Joomla
  themes/modules/plugins/widgets
• <3 building interesting data driven web sites
…And YOU?
Today’s Sessions
• 9:00am – 12:00pm

   – Seven life changing reasons why you should design
     for the mobile web

   – Why is jQuery so dang cool?

   – A Brief History of jQuery

   – jQuery Mobile: “What It Do?”

   – Creating gorgeous mobile web apps (in about 30 seconds)

   – GAMES!
Today’s Sessions
• 12:45pm – 4:00pm
  – Time to get your hands dirty

  – “Hello” + $(“#world”).val() + “!”;

  – Toolbars foolbars

  – Buttons… and danger

  – Creating forms that don’t suck

  – Great resources

  – Closing arguments + bonus: 24 reasons why I love beer
Bribery!
Also Learning
Seven life changing reasons
why you should design for the mobile web

Reason #1:

By 2014, mobile internet should take over
    desktop usage


Source: http://www.digitalbuzzblog.com/2011-mobile-statistics-stats-facts-marketing-infographic/
Seven life changing reasons
why you should design for the mobile web

Reason #2:

85% of mobile devices will be web enabled by
    2012


Source: http://www.google.com/think/insights/topics/think-mobile.html
Seven life changing reasons
why you should design for the mobile web

Reason #3:

More than 50% of U.S. adults will be using a
   smartphone by the end of 2011


Source: http://www.google.com/think/insights/topics/think-mobile.html
Seven life changing reasons
why you should design for the mobile web

Reason #4:

In a typical week, 81% of smartphone users
   will browse the Internet



Source: http://www.google.com/think/insights/topics/think-mobile.html
Seven life changing reasons
why you should design for the mobile web

Reason #5:
49% of those who have seen a mobile ad take action. Of
   those:
     – 49% purchase
     – 42% click on the ad
     – 35% visit website
Source: http://www.google.com/think/insights/topics/think-mobile.html
Seven life changing reasons
why you should design for the mobile web

Reason #6:

29% of smartphone owners in the U.S. have
     made an online purchase using their
     smartphone

Source: https://docs.google.com/gview?url=http://www.gstatic.com/ads/research/en/2011_Google_MMA_Global_Perspectives.pdf&chrome=true
Seven life changing reasons
why you should design for the mobile web

Reason #7:

Everybody’s doing it: “We understand that the
  new rule is ‘Mobile First.’ ” ~ Eric Schmidt,
  Google CEO
“OK OK OK! I get it.”
Why is jQuery so dang cool?
• jQuery makes writing Javascript almost effortless
   – DOM selectors! $(“li.navigation”)

   – Daisy chain events and commands
     $(“li.navigation”).click(function() {
       alert(‘You clicked me!’);
     }).mouseover(function() {
       alert(‘You moused over me!’);
     }).css(‘color’, ‘red’);

   – Automaticly cross-browser compatible (mostly)
Why is jQuery so dang cool?
• jQuery is used…. a lot… by a lot of people. This
  means:
   – Extensive cache of plugins and themes that you can straight-up
     jack from jQuery.com for use in your mobile site.

   – Quick and easy access to help from websites like
     stackoverflow.com
A brief history of jQuery
2005:

John Resig posts about improving upon Behaviour.js
  methods. Description of jQuery by Behaviour.js
  website: “Jquery is like behaviour that has been sent
  back from the future by a secret f$%# government
  lab”
A brief history of jQuery
2006:
• jQuery announced at BarCampNYC and world rejoices
• jQuery 1.0 released
2007:
• Plugin repository created
• jQuery UI announced
A brief history of jQuery
2008:
• jQuery UI release candidate made available
2009:
• Boring
2010
• jQuery Mobile project announced and world rejoices once
  more
jQuery Mobile: “What It Do?”
jQuery Mobile: “What It Do?”
The company line: “A unified user interface system that
  works seamlessly across all popular mobile device
  platforms, built on the rock-solid jQuery and jQuery
  UI foundation. Focused on a lightweight codebase
  built on progressive enhancement with a flexible,
  easily themeable design.”
jQuery Mobile: “What It Don’t?”
ALERT! You should probably stay away from developing with jQuery Mobile for these devices:
Blackberry 4.x
All older smartphone platforms and feature phones
Any device that doesn’t support media queries
MeeGo – Originally a target platform, but Nokia decision to relegate this platform to
    “experimental”, the good folks at jQuery are considering dropping support.
Samsung Bada – The project doesn’t currently have test devices or emulators although so far
    it’s showing good support. No guarantee of future support.
Creating gorgeous mobile web apps
(in about 30 seconds)
1.   Open our example files folder and go to /like_a_boss/
2.   Open index.html and check it out.
3.   Open index.html in your favorite text editor
4.   Edit line #23:
     <div data-role="page" id="main_page">
5.   Change to:
     <div data-role="page" id="main_page" data-theme="e" data-content-theme="e">
6.   Save and reopen
7.   BAM!
Let’s get to work!
“Hello” + $(“#world”).val() + “!”;
1.    Open our example files folder and go to /helloworld/
2.    Open index.html and check it out
3.    Open index.html in your favorite text editor
4.    Create new page containing text “Hello World!”
5.    Create button to link to that page
     1.   Use data-role=“button”
6.    Save that bad boy
Let’s get to work!
Toolbars foolbars
1.   Open our example files folder and go to /foolbars/
2.   Open index.html and check it out
3.   Open index.html in your favorite text editor
4.   Learn more about buttons and come back 
5.   Add buttons to toolbar like so:
     <a href="index.html" data-icon=“delete”>Cancel</a>
     <h1>Toolbars Foolbars</h1>
     <a href="index.html" data-icon=“check”>Save</a>
6.   Add footer buttons using a horizontal controlgroup
Let’s get to work!
Buttons… and danger
1.        Open our example files folder and go to /dangerbuttons/
2.        Open index.html and check it out
3.        Open index.html in your favorite text editor
4.        Add positioning data rolls to each test button
     1.       Positions are: top, bottom, left, right and notext
     2.       Use data-iconpos=“whatever”

5.        Change themes for each individual button
     1.       Themes are: a, b, c, d, e
     2.       Use data-theme=“whatever”

6.        TEST TEST TEST TEST TEST
Let’s get to work!
Buttons… and danger
1.        Add icons to grouped buttons
     1.        Icons are: arrow-l, arrow-r, arrow-u, arrow-d, delete, plus, minus, check, gear, refresh, forward,
               back, grid, star, alert, info, home, search
     2.        Use data-icon=“whatever”

2.        Make group buttons horizontal
     1.        Add data-type=“horizontal” to your controlgroup

3.        Add additional inline buttons
     1.        Play with different theme options to differentiate buttons

4.        Test it!!
Let’s get to work!
Creating forms that don’t suck
1.    Open our example files folder and go to /suckbegone/
2.    Open index.html and check it out
3.    Open index.html in your favorite text editor
4.    Create a contact form that includes at least:
     1.   Name, e-mail, phone, subject, website rating, city, state, zip code
5.    Turn off native selection (HOLY $#%#! THIS IS AWESOME)
6.    Save, test, HALELUJAH!
Great Resources
•   jQuery 1.6 Visual Cheat Sheet
    http://woorkup.com/2011/05/12/jquery-visual-cheat-sheet-1-6/
•   jQueryMobile.com
•   jQuery Mobile on github
    https://github.com/jquery/jquery-mobile
•   Stack Overflow
    http://stackoverflow.com/
Keep in touch!

    http://flickr.hudsoncs.com/


    _davidhudson


    david@hudsoncs.com
24 reasons why I love beer

Más contenido relacionado

Destacado

Bullying
BullyingBullying
BullyingRui8d
 
Social media danger
Social media dangerSocial media danger
Social media dangerleaderj
 
Z force touch screen technology
Z force touch screen technologyZ force touch screen technology
Z force touch screen technologylokesh naidu
 
Safe Battery Handling
Safe Battery HandlingSafe Battery Handling
Safe Battery HandlingRahul Ahuja
 
Swift Delhi: Practical POP
Swift Delhi: Practical POPSwift Delhi: Practical POP
Swift Delhi: Practical POPNatasha Murashev
 
Manual Handling Training in Work Places
Manual Handling Training in Work PlacesManual Handling Training in Work Places
Manual Handling Training in Work PlacesRahul Ahuja
 
The Three Lies About Your Age
The Three Lies About Your AgeThe Three Lies About Your Age
The Three Lies About Your AgeSean Si
 
The Art of the Presentation
The Art of the PresentationThe Art of the Presentation
The Art of the PresentationJeffrey Stevens
 
Future Social: 10 Key Trends in Social Media
Future Social: 10 Key Trends in Social MediaFuture Social: 10 Key Trends in Social Media
Future Social: 10 Key Trends in Social MediaWe Are Social Singapore
 
How to Use Social Media to Influence the World
How to Use Social Media to Influence the WorldHow to Use Social Media to Influence the World
How to Use Social Media to Influence the WorldSean Si
 
Teaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakTeaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakShelly Sanchez Terrell
 
Mobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigitalMobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigitalAleyda Solís
 

Destacado (16)

my smartphone
my smartphonemy smartphone
my smartphone
 
Bullying
BullyingBullying
Bullying
 
Social media danger
Social media dangerSocial media danger
Social media danger
 
Z force touch screen technology
Z force touch screen technologyZ force touch screen technology
Z force touch screen technology
 
Firewall presentation
Firewall presentationFirewall presentation
Firewall presentation
 
Firewall
Firewall Firewall
Firewall
 
Safe Battery Handling
Safe Battery HandlingSafe Battery Handling
Safe Battery Handling
 
Swift Delhi: Practical POP
Swift Delhi: Practical POPSwift Delhi: Practical POP
Swift Delhi: Practical POP
 
Manual Handling Training in Work Places
Manual Handling Training in Work PlacesManual Handling Training in Work Places
Manual Handling Training in Work Places
 
The Three Lies About Your Age
The Three Lies About Your AgeThe Three Lies About Your Age
The Three Lies About Your Age
 
The Art of the Presentation
The Art of the PresentationThe Art of the Presentation
The Art of the Presentation
 
Future Social: 10 Key Trends in Social Media
Future Social: 10 Key Trends in Social MediaFuture Social: 10 Key Trends in Social Media
Future Social: 10 Key Trends in Social Media
 
How to Use Social Media to Influence the World
How to Use Social Media to Influence the WorldHow to Use Social Media to Influence the World
How to Use Social Media to Influence the World
 
Teaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & TextspeakTeaching Students with Emojis, Emoticons, & Textspeak
Teaching Students with Emojis, Emoticons, & Textspeak
 
Mobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigitalMobile-First SEO - The Marketers Edition #3XEDigital
Mobile-First SEO - The Marketers Edition #3XEDigital
 
Build Features, Not Apps
Build Features, Not AppsBuild Features, Not Apps
Build Features, Not Apps
 

Similar a Introduction to jQuery Mobile

TOC Workshop 2013
TOC Workshop 2013TOC Workshop 2013
TOC Workshop 2013Haig Armen
 
7 Actionable SEO Strategies to Build Real Revenue Now
7 Actionable SEO Strategies to Build Real Revenue Now7 Actionable SEO Strategies to Build Real Revenue Now
7 Actionable SEO Strategies to Build Real Revenue NowMiva
 
John Lincoln, MivaCon 2016 - 7 Actionable SEO Strategies to Build Real Revenu...
John Lincoln, MivaCon 2016 - 7 Actionable SEO Strategies to Build Real Revenu...John Lincoln, MivaCon 2016 - 7 Actionable SEO Strategies to Build Real Revenu...
John Lincoln, MivaCon 2016 - 7 Actionable SEO Strategies to Build Real Revenu...John Lincoln
 
Responsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawResponsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawMeet Magento Spain
 
Adobe phonegap-workshop-2013
Adobe phonegap-workshop-2013Adobe phonegap-workshop-2013
Adobe phonegap-workshop-2013Haig Armen
 
UTEP AITP Presentation - 10/17/2012
UTEP AITP Presentation - 10/17/2012UTEP AITP Presentation - 10/17/2012
UTEP AITP Presentation - 10/17/2012impulsedev
 
Responsive Design Overview for UB CIT
Responsive Design Overview for UB CITResponsive Design Overview for UB CIT
Responsive Design Overview for UB CITAdrian Roselli
 
Beginning jQuery Mobile
Beginning jQuery MobileBeginning jQuery Mobile
Beginning jQuery MobileTroy Miles
 
Web Apps and Responsive Design for Libraries
Web Apps and Responsive Design for LibrariesWeb Apps and Responsive Design for Libraries
Web Apps and Responsive Design for LibrariesMatt Machell
 
Lean Development: Design Through Iterative Experiments
Lean Development: Design Through Iterative ExperimentsLean Development: Design Through Iterative Experiments
Lean Development: Design Through Iterative ExperimentsSalesforce Developers
 
ICT Projects for Social Change.pptx
ICT Projects for Social Change.pptxICT Projects for Social Change.pptx
ICT Projects for Social Change.pptxALCondezEdquibanEbue
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5Ron Reiter
 
Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalRod Martin
 
Tales from the Accessibility Trenches
Tales from the Accessibility TrenchesTales from the Accessibility Trenches
Tales from the Accessibility Trenchesgraemecoleman
 
Curtin University Frontend Web Development
Curtin University Frontend Web DevelopmentCurtin University Frontend Web Development
Curtin University Frontend Web DevelopmentDaryll Chu
 
Web app with j query &amp; javascript (5:4)
Web app with j query &amp; javascript (5:4)Web app with j query &amp; javascript (5:4)
Web app with j query &amp; javascript (5:4)Thinkful
 
Web Performance & You - HighEdWeb Arkansas Version
Web Performance & You - HighEdWeb Arkansas VersionWeb Performance & You - HighEdWeb Arkansas Version
Web Performance & You - HighEdWeb Arkansas VersionDave Olsen
 

Similar a Introduction to jQuery Mobile (20)

TOC Workshop 2013
TOC Workshop 2013TOC Workshop 2013
TOC Workshop 2013
 
7 Actionable SEO Strategies to Build Real Revenue Now
7 Actionable SEO Strategies to Build Real Revenue Now7 Actionable SEO Strategies to Build Real Revenue Now
7 Actionable SEO Strategies to Build Real Revenue Now
 
John Lincoln, MivaCon 2016 - 7 Actionable SEO Strategies to Build Real Revenu...
John Lincoln, MivaCon 2016 - 7 Actionable SEO Strategies to Build Real Revenu...John Lincoln, MivaCon 2016 - 7 Actionable SEO Strategies to Build Real Revenu...
John Lincoln, MivaCon 2016 - 7 Actionable SEO Strategies to Build Real Revenu...
 
Responsive Web Design - Tom Robertshaw
Responsive Web Design - Tom RobertshawResponsive Web Design - Tom Robertshaw
Responsive Web Design - Tom Robertshaw
 
Adobe phonegap-workshop-2013
Adobe phonegap-workshop-2013Adobe phonegap-workshop-2013
Adobe phonegap-workshop-2013
 
CMS Joomla
CMS JoomlaCMS Joomla
CMS Joomla
 
UTEP AITP Presentation - 10/17/2012
UTEP AITP Presentation - 10/17/2012UTEP AITP Presentation - 10/17/2012
UTEP AITP Presentation - 10/17/2012
 
Responsive Design Overview for UB CIT
Responsive Design Overview for UB CITResponsive Design Overview for UB CIT
Responsive Design Overview for UB CIT
 
Web works hol
Web works holWeb works hol
Web works hol
 
Beginning jQuery Mobile
Beginning jQuery MobileBeginning jQuery Mobile
Beginning jQuery Mobile
 
Web Apps and Responsive Design for Libraries
Web Apps and Responsive Design for LibrariesWeb Apps and Responsive Design for Libraries
Web Apps and Responsive Design for Libraries
 
Lean Development: Design Through Iterative Experiments
Lean Development: Design Through Iterative ExperimentsLean Development: Design Through Iterative Experiments
Lean Development: Design Through Iterative Experiments
 
ICT Projects for Social Change.pptx
ICT Projects for Social Change.pptxICT Projects for Social Change.pptx
ICT Projects for Social Change.pptx
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
 
Swf search final
Swf search finalSwf search final
Swf search final
 
Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to Drupal
 
Tales from the Accessibility Trenches
Tales from the Accessibility TrenchesTales from the Accessibility Trenches
Tales from the Accessibility Trenches
 
Curtin University Frontend Web Development
Curtin University Frontend Web DevelopmentCurtin University Frontend Web Development
Curtin University Frontend Web Development
 
Web app with j query &amp; javascript (5:4)
Web app with j query &amp; javascript (5:4)Web app with j query &amp; javascript (5:4)
Web app with j query &amp; javascript (5:4)
 
Web Performance & You - HighEdWeb Arkansas Version
Web Performance & You - HighEdWeb Arkansas VersionWeb Performance & You - HighEdWeb Arkansas Version
Web Performance & You - HighEdWeb Arkansas Version
 

Último

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 

Último (20)

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 

Introduction to jQuery Mobile

  • 1.
  • 2. Hi! I’m David About me: • Senior Web Developer, Southern Bancorp • Multiple disciplines including: PHP, Javascript, Objective-C , MySQL, CSS, HTML, Graphic Design, WordPress and Joomla themes/modules/plugins/widgets • <3 building interesting data driven web sites
  • 4. Today’s Sessions • 9:00am – 12:00pm – Seven life changing reasons why you should design for the mobile web – Why is jQuery so dang cool? – A Brief History of jQuery – jQuery Mobile: “What It Do?” – Creating gorgeous mobile web apps (in about 30 seconds) – GAMES!
  • 5. Today’s Sessions • 12:45pm – 4:00pm – Time to get your hands dirty – “Hello” + $(“#world”).val() + “!”; – Toolbars foolbars – Buttons… and danger – Creating forms that don’t suck – Great resources – Closing arguments + bonus: 24 reasons why I love beer
  • 8. Seven life changing reasons why you should design for the mobile web Reason #1: By 2014, mobile internet should take over desktop usage Source: http://www.digitalbuzzblog.com/2011-mobile-statistics-stats-facts-marketing-infographic/
  • 9. Seven life changing reasons why you should design for the mobile web Reason #2: 85% of mobile devices will be web enabled by 2012 Source: http://www.google.com/think/insights/topics/think-mobile.html
  • 10. Seven life changing reasons why you should design for the mobile web Reason #3: More than 50% of U.S. adults will be using a smartphone by the end of 2011 Source: http://www.google.com/think/insights/topics/think-mobile.html
  • 11. Seven life changing reasons why you should design for the mobile web Reason #4: In a typical week, 81% of smartphone users will browse the Internet Source: http://www.google.com/think/insights/topics/think-mobile.html
  • 12. Seven life changing reasons why you should design for the mobile web Reason #5: 49% of those who have seen a mobile ad take action. Of those: – 49% purchase – 42% click on the ad – 35% visit website Source: http://www.google.com/think/insights/topics/think-mobile.html
  • 13. Seven life changing reasons why you should design for the mobile web Reason #6: 29% of smartphone owners in the U.S. have made an online purchase using their smartphone Source: https://docs.google.com/gview?url=http://www.gstatic.com/ads/research/en/2011_Google_MMA_Global_Perspectives.pdf&chrome=true
  • 14. Seven life changing reasons why you should design for the mobile web Reason #7: Everybody’s doing it: “We understand that the new rule is ‘Mobile First.’ ” ~ Eric Schmidt, Google CEO
  • 15. “OK OK OK! I get it.”
  • 16. Why is jQuery so dang cool? • jQuery makes writing Javascript almost effortless – DOM selectors! $(“li.navigation”) – Daisy chain events and commands $(“li.navigation”).click(function() { alert(‘You clicked me!’); }).mouseover(function() { alert(‘You moused over me!’); }).css(‘color’, ‘red’); – Automaticly cross-browser compatible (mostly)
  • 17. Why is jQuery so dang cool? • jQuery is used…. a lot… by a lot of people. This means: – Extensive cache of plugins and themes that you can straight-up jack from jQuery.com for use in your mobile site. – Quick and easy access to help from websites like stackoverflow.com
  • 18. A brief history of jQuery 2005: John Resig posts about improving upon Behaviour.js methods. Description of jQuery by Behaviour.js website: “Jquery is like behaviour that has been sent back from the future by a secret f$%# government lab”
  • 19. A brief history of jQuery 2006: • jQuery announced at BarCampNYC and world rejoices • jQuery 1.0 released 2007: • Plugin repository created • jQuery UI announced
  • 20. A brief history of jQuery 2008: • jQuery UI release candidate made available 2009: • Boring 2010 • jQuery Mobile project announced and world rejoices once more
  • 22. jQuery Mobile: “What It Do?” The company line: “A unified user interface system that works seamlessly across all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Focused on a lightweight codebase built on progressive enhancement with a flexible, easily themeable design.”
  • 23. jQuery Mobile: “What It Don’t?” ALERT! You should probably stay away from developing with jQuery Mobile for these devices: Blackberry 4.x All older smartphone platforms and feature phones Any device that doesn’t support media queries MeeGo – Originally a target platform, but Nokia decision to relegate this platform to “experimental”, the good folks at jQuery are considering dropping support. Samsung Bada – The project doesn’t currently have test devices or emulators although so far it’s showing good support. No guarantee of future support.
  • 24. Creating gorgeous mobile web apps (in about 30 seconds) 1. Open our example files folder and go to /like_a_boss/ 2. Open index.html and check it out. 3. Open index.html in your favorite text editor 4. Edit line #23: <div data-role="page" id="main_page"> 5. Change to: <div data-role="page" id="main_page" data-theme="e" data-content-theme="e"> 6. Save and reopen 7. BAM!
  • 25. Let’s get to work! “Hello” + $(“#world”).val() + “!”; 1. Open our example files folder and go to /helloworld/ 2. Open index.html and check it out 3. Open index.html in your favorite text editor 4. Create new page containing text “Hello World!” 5. Create button to link to that page 1. Use data-role=“button” 6. Save that bad boy
  • 26. Let’s get to work! Toolbars foolbars 1. Open our example files folder and go to /foolbars/ 2. Open index.html and check it out 3. Open index.html in your favorite text editor 4. Learn more about buttons and come back  5. Add buttons to toolbar like so: <a href="index.html" data-icon=“delete”>Cancel</a> <h1>Toolbars Foolbars</h1> <a href="index.html" data-icon=“check”>Save</a> 6. Add footer buttons using a horizontal controlgroup
  • 27. Let’s get to work! Buttons… and danger 1. Open our example files folder and go to /dangerbuttons/ 2. Open index.html and check it out 3. Open index.html in your favorite text editor 4. Add positioning data rolls to each test button 1. Positions are: top, bottom, left, right and notext 2. Use data-iconpos=“whatever” 5. Change themes for each individual button 1. Themes are: a, b, c, d, e 2. Use data-theme=“whatever” 6. TEST TEST TEST TEST TEST
  • 28. Let’s get to work! Buttons… and danger 1. Add icons to grouped buttons 1. Icons are: arrow-l, arrow-r, arrow-u, arrow-d, delete, plus, minus, check, gear, refresh, forward, back, grid, star, alert, info, home, search 2. Use data-icon=“whatever” 2. Make group buttons horizontal 1. Add data-type=“horizontal” to your controlgroup 3. Add additional inline buttons 1. Play with different theme options to differentiate buttons 4. Test it!!
  • 29. Let’s get to work! Creating forms that don’t suck 1. Open our example files folder and go to /suckbegone/ 2. Open index.html and check it out 3. Open index.html in your favorite text editor 4. Create a contact form that includes at least: 1. Name, e-mail, phone, subject, website rating, city, state, zip code 5. Turn off native selection (HOLY $#%#! THIS IS AWESOME) 6. Save, test, HALELUJAH!
  • 30. Great Resources • jQuery 1.6 Visual Cheat Sheet http://woorkup.com/2011/05/12/jquery-visual-cheat-sheet-1-6/ • jQueryMobile.com • jQuery Mobile on github https://github.com/jquery/jquery-mobile • Stack Overflow http://stackoverflow.com/
  • 31. Keep in touch! http://flickr.hudsoncs.com/ _davidhudson david@hudsoncs.com
  • 32. 24 reasons why I love beer