SlideShare a Scribd company logo
MOBILE WEB APP
DEVELOPMENT
(BECOMING NATIVE)

DMD12 BSc
17th March 2011
Syd Lawrence                 SIT BACK /
                             SIT BACK
                             LISTEN UP
                             LISTEN UP

slideshare.net/sydlawrence
NO RELOAD



                                                  SIT BACK /
                                                  SIT BACK
                                                  LISTEN UP
                                                  LISTEN UP

http://www.flickr.com/photos/barjack/135263802/
A SINGLE
HTML PAGE



                                                       SIT BACK /
                                                       SIT BACK
                                                       LISTEN UP
                                                       LISTEN UP

http://www.flickr.com/photos/ewanrayment/1250049249/
HIDE UNNEEDED
ELEMENTS



                                                SIT BACK /
                                                SIT BACK
                                                LISTEN UP
                                                LISTEN UP

http://www.flickr.com/photos/rsms/1320004520/
RETREIVE THE DATA



                                                        SIT BACK /
                                                        SIT BACK
                                                        LISTEN UP
                                                        LISTEN UP

http://www.flickr.com/photos/29503348@N03/4915763648/
FROM REMOTE API



                                                        SIT BACK /
                                                        SIT BACK
                                                        LISTEN UP
                                                        LISTEN UP

http://www.flickr.com/photos/29503348@N03/4915763648/
JSONP



                                                     SIT BACK /
                                                     SIT BACK
                                                     LISTEN UP
                                                     LISTEN UP

http://www.flickr.com/photos/sabeth718/4975388271/
http://api.com/get.php?user=2
                                                       <code/>
___

callback({"id":2,"first_name":"Syd","last_name":”Lawrence”})



___

** local javascript

function callback(data) {
    // do something
}
var url = “http://api.com/get.php?user=2”; // URL of the external script

var script = document.createElement('script');
script.setAttribute('src', url);

// load the script
document.getElementsByTagName('head')[0].appendChild(script);


                                                                     SIT BACK /
                                                                     SIT BACK
                                                                     LISTEN UP
                                                                     LISTEN UP

MORE INFO: http://sydl.me/evqQVJ
CACHE THE DATA



                                                   SIT BACK /
                                                   SIT BACK
                                                   LISTEN UP
                                                   LISTEN UP

http://www.flickr.com/photos/kurtz433/242712215/
LOCAL STORAGE



                SIT BACK /
                SIT BACK
                LISTEN UP
                LISTEN UP
DISPLAY THE DATA



                                             SIT BACK /
                                             SIT BACK
                                             LISTEN UP
                                             LISTEN UP

http://www.flickr.com/photos/drp/14437926/
MODIFY THE
DISPLAYED DATA



                                                     SIT BACK /
                                                     SIT BACK
                                                     LISTEN UP
                                                     LISTEN UP

http://www.flickr.com/photos/familymwr/4930275692/
REPLACE THE
DISPLAYED DATA



                                                      SIT BACK /
                                                      SIT BACK
                                                      LISTEN UP
                                                      LISTEN UP

http://www.flickr.com/photos/zephyrance/2865451246/
JAVASCRIPT
FRAMEWORKS



                                                        SIT BACK /
                                                        SIT BACK
                                                        LISTEN UP
                                                        LISTEN UP

http://www.flickr.com/photos/29503348@N03/4915763648/
DO NOT
OVERUSE!



                                                SIT BACK /
                                                SIT BACK
                                                LISTEN UP
                                                LISTEN UP

http://www.flickr.com/photos/bayat/296445681/
THINK
BANDWIDTH



                                                SIT BACK /
                                                SIT BACK
                                                LISTEN UP
                                                LISTEN UP

http://www.flickr.com/photos/pdxdj/253103371/
THINK SPEED



                                                   SIT BACK /
                                                   SIT BACK
                                                   LISTEN UP
                                                   LISTEN UP

http://www.flickr.com/photos/johnkay/5070219963/
SENCHA TOUCH
sydl.me/fPd02C



                 SIT BACK /
                 SIT BACK
                 LISTEN UP
                 LISTEN UP
JQUERY MOBILE
sydl.me/eGzOcE



                 SIT BACK /
                 SIT BACK
                 LISTEN UP
                 LISTEN UP
IWEBKIT
sydl.me/eNt5uU



                 SIT BACK /
                 SIT BACK
                 LISTEN UP
                 LISTEN UP
NEXT STEP



                                                         SIT BACK /
                                                         SIT BACK
                                                         LISTEN UP
                                                         LISTEN UP

http://www.flickr.com/photos/stuckincustoms/219819675/
PHONEGAP
sydl.me/hLUJz3



                 SIT BACK /
                 SIT BACK
                 LISTEN UP
                 LISTEN UP
APPCELERATOR
sydl.me/gYXZIC



                 SIT BACK /
                 SIT BACK
                 LISTEN UP
                 LISTEN UP
APPMOBI
sydl.me/eAp2oA



                 SIT BACK /
                 SIT BACK
                 LISTEN UP
                 LISTEN UP
WHY THIS STEP?



                                                     SIT BACK /
                                                     SIT BACK
                                                     LISTEN UP
                                                     LISTEN UP

http://www.flickr.com/photos/benterrett/191625180/
APP STORES



                                                      SIT BACK /
                                                      SIT BACK
                                                      LISTEN UP
                                                      LISTEN UP

http://www.flickr.com/photos/agizienski/3778956583/
CAMERAS



                                                    SIT BACK /
                                                    SIT BACK
                                                    LISTEN UP
                                                    LISTEN UP

http://www.flickr.com/photos/captkodak/271872436/
COMPASS



                                                          SIT BACK /
                                                          SIT BACK
                                                          LISTEN UP
                                                          LISTEN UP

http://www.flickr.com/photos/curious_gregor/5062538980/
FILES



                                                      SIT BACK /
                                                      SIT BACK
                                                      LISTEN UP
                                                      LISTEN UP

http://www.flickr.com/photos/davemorris/4400953131/
NOTIFICATIONS



                                                  SIT BACK /
                                                  SIT BACK
                                                  LISTEN UP
                                                  LISTEN UP

http://www.flickr.com/photos/funtik/1175522045/
RECORD MEDIA



                                                    SIT BACK /
                                                    SIT BACK
                                                    LISTEN UP
                                                    LISTEN UP

http://www.flickr.com/photos/adambowie/544200097/
WANT TO
KNOW MORE


http://www.ibm.com/developerworks/library/wa-aj-jsonp1/
http://sixrevisions.com/web-development/html5-iphone-app/
http://ofps.oreilly.com/titles/9780596805784/
                                                            SIT BACK /
                                                            SIT BACK
http://www.easyapns.com/                                    LISTEN UP
                                                            LISTEN UP

http://js-html5.com/tagged/mobile
A LITTLE
TASK DUE
TODAY
(NOT REALLY THAT OPTIONAL, BUT UP TO YOU IF YOU WANT TO DO IT)




Create your API
Setup your database
Populate with sample data
                                                                 SIT BACK /
                                                                 SIT BACK
Create your getters and setters                                  LISTEN UP
                                                                 LISTEN UP

Test
HOW DID
YOU DO?


                                                       SIT BACK /
                                                        SIT BACK
                                                       LISTENUP
                                                        LISTEN UP



http://www.flickr.com/photos/annagaycoan/3750144703/
A LITTLE
TASK DUE
NEXT WEEK
(GROUP WORK)




In your groups
1 person sort out the HTML & CSS view
1 person play around with the web -> native apps
                                                          SIT BACK /
                                                          SIT BACK
   Get some kind of application onto a mobile device      LISTEN UP
                                                          LISTEN UP

1 person project manage and work out what is left to do
CODE SAMPLES
AND CONCEPTS


Mobile websites tips & tricks (@fakedarren)
Cache Manifest
localStorage
                                              SIT BACK /
                                              SIT BACK
Online / Offline Events                       LISTEN UP
                                              LISTEN UP

JSONP

More Related Content

KEY
Mobile web app development
KEY
Mobile Web App Development (Building your API)
ZIP
Making AJAX User Friendly, Google Friendly, Friendly Friendly using the Histo...
PDF
White Space Creativity
PDF
The Creativity (R)Evolution - CREATE Festival 2015
PDF
Presentationcreativityrevolutionuxweek 140912120824-phpapp02
PDF
The Creativity (R)Evolution - UX Week 2014
PDF
Hyperlocal or Hype (and Local)?
Mobile web app development
Mobile Web App Development (Building your API)
Making AJAX User Friendly, Google Friendly, Friendly Friendly using the Histo...
White Space Creativity
The Creativity (R)Evolution - CREATE Festival 2015
Presentationcreativityrevolutionuxweek 140912120824-phpapp02
The Creativity (R)Evolution - UX Week 2014
Hyperlocal or Hype (and Local)?

What's hot (18)

PDF
Get Unblocked
PDF
Get Unblocked - NDC Oslo 2015
PDF
Advancing the Future of America's Heritage through Organic Social Networks
PDF
Banish Your Inner Critic to Unleash Creativity – edUi Conference 2015
PDF
Infinite Possibilities - Digital PM Summit 2015
PDF
Bored But Never Boring - Media Evolution: The Conference 2013
PDF
Immediate Inspiration
PPT
TLTF12 Building Innovative Learning Spaces
PDF
Hacking the Creative Brain - Devoxx Belgium, 2014
PDF
White Space Creativity - Frontend Conference CH 2014
PDF
The Creativity Imperative - NDC London 2014
PDF
Get Unblocked - 33rd Degree Conference
PDF
Find Your Shameless Spark - Inspiring Women Live 2014
PDF
Infinite Possibilities - FrontEnd Conf CH 2016
PDF
Infinite Possibilities - Groupon's GEEKon 2015
PDF
Infinite Possibilities - Devoxx Belgium, 2014
PDF
Hacking the Creative Brain
PPTX
Of Data Silos, Geo-Babel & Other Geo Malaises
Get Unblocked
Get Unblocked - NDC Oslo 2015
Advancing the Future of America's Heritage through Organic Social Networks
Banish Your Inner Critic to Unleash Creativity – edUi Conference 2015
Infinite Possibilities - Digital PM Summit 2015
Bored But Never Boring - Media Evolution: The Conference 2013
Immediate Inspiration
TLTF12 Building Innovative Learning Spaces
Hacking the Creative Brain - Devoxx Belgium, 2014
White Space Creativity - Frontend Conference CH 2014
The Creativity Imperative - NDC London 2014
Get Unblocked - 33rd Degree Conference
Find Your Shameless Spark - Inspiring Women Live 2014
Infinite Possibilities - FrontEnd Conf CH 2016
Infinite Possibilities - Groupon's GEEKon 2015
Infinite Possibilities - Devoxx Belgium, 2014
Hacking the Creative Brain
Of Data Silos, Geo-Babel & Other Geo Malaises
Ad

More from Syd Lawrence (7)

PDF
High Performance PhoneGap Apps
PDF
Music is the Soul - The Web is the Platform FOWA London 2014
PDF
Mobile Apps with Web Tech
PDF
It's the start of the web revolution, but it's not what you think
PPT
Rewriting The History Books
KEY
Javascript Development
KEY
Introduction to javascript
High Performance PhoneGap Apps
Music is the Soul - The Web is the Platform FOWA London 2014
Mobile Apps with Web Tech
It's the start of the web revolution, but it's not what you think
Rewriting The History Books
Javascript Development
Introduction to javascript
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Mushroom cultivation and it's methods.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Encapsulation theory and applications.pdf
PPTX
1. Introduction to Computer Programming.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
A Presentation on Artificial Intelligence
PDF
Approach and Philosophy of On baking technology
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
MIND Revenue Release Quarter 2 2025 Press Release
Building Integrated photovoltaic BIPV_UPV.pdf
Mushroom cultivation and it's methods.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Assigned Numbers - 2025 - Bluetooth® Document
Encapsulation theory and applications.pdf
1. Introduction to Computer Programming.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
DP Operators-handbook-extract for the Mautical Institute
A novel scalable deep ensemble learning framework for big data classification...
Enhancing emotion recognition model for a student engagement use case through...
A Presentation on Artificial Intelligence
Approach and Philosophy of On baking technology
Zenith AI: Advanced Artificial Intelligence
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
cloud_computing_Infrastucture_as_cloud_p
A comparative study of natural language inference in Swahili using monolingua...
Digital-Transformation-Roadmap-for-Companies.pptx
OMC Textile Division Presentation 2021.pptx
Heart disease approach using modified random forest and particle swarm optimi...

Mobile Web App Development (Becoming native)

  • 1. MOBILE WEB APP DEVELOPMENT (BECOMING NATIVE) DMD12 BSc 17th March 2011 Syd Lawrence SIT BACK / SIT BACK LISTEN UP LISTEN UP slideshare.net/sydlawrence
  • 2. NO RELOAD SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/barjack/135263802/
  • 3. A SINGLE HTML PAGE SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/ewanrayment/1250049249/
  • 4. HIDE UNNEEDED ELEMENTS SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/rsms/1320004520/
  • 5. RETREIVE THE DATA SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/29503348@N03/4915763648/
  • 6. FROM REMOTE API SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/29503348@N03/4915763648/
  • 7. JSONP SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/sabeth718/4975388271/
  • 8. http://api.com/get.php?user=2 <code/> ___ callback({"id":2,"first_name":"Syd","last_name":”Lawrence”}) ___ ** local javascript function callback(data) { // do something } var url = “http://api.com/get.php?user=2”; // URL of the external script var script = document.createElement('script'); script.setAttribute('src', url); // load the script document.getElementsByTagName('head')[0].appendChild(script); SIT BACK / SIT BACK LISTEN UP LISTEN UP MORE INFO: http://sydl.me/evqQVJ
  • 9. CACHE THE DATA SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/kurtz433/242712215/
  • 10. LOCAL STORAGE SIT BACK / SIT BACK LISTEN UP LISTEN UP
  • 11. DISPLAY THE DATA SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/drp/14437926/
  • 12. MODIFY THE DISPLAYED DATA SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/familymwr/4930275692/
  • 13. REPLACE THE DISPLAYED DATA SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/zephyrance/2865451246/
  • 14. JAVASCRIPT FRAMEWORKS SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/29503348@N03/4915763648/
  • 15. DO NOT OVERUSE! SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/bayat/296445681/
  • 16. THINK BANDWIDTH SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/pdxdj/253103371/
  • 17. THINK SPEED SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/johnkay/5070219963/
  • 18. SENCHA TOUCH sydl.me/fPd02C SIT BACK / SIT BACK LISTEN UP LISTEN UP
  • 19. JQUERY MOBILE sydl.me/eGzOcE SIT BACK / SIT BACK LISTEN UP LISTEN UP
  • 20. IWEBKIT sydl.me/eNt5uU SIT BACK / SIT BACK LISTEN UP LISTEN UP
  • 21. NEXT STEP SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/stuckincustoms/219819675/
  • 22. PHONEGAP sydl.me/hLUJz3 SIT BACK / SIT BACK LISTEN UP LISTEN UP
  • 23. APPCELERATOR sydl.me/gYXZIC SIT BACK / SIT BACK LISTEN UP LISTEN UP
  • 24. APPMOBI sydl.me/eAp2oA SIT BACK / SIT BACK LISTEN UP LISTEN UP
  • 25. WHY THIS STEP? SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/benterrett/191625180/
  • 26. APP STORES SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/agizienski/3778956583/
  • 27. CAMERAS SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/captkodak/271872436/
  • 28. COMPASS SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/curious_gregor/5062538980/
  • 29. FILES SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/davemorris/4400953131/
  • 30. NOTIFICATIONS SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/funtik/1175522045/
  • 31. RECORD MEDIA SIT BACK / SIT BACK LISTEN UP LISTEN UP http://www.flickr.com/photos/adambowie/544200097/
  • 33. A LITTLE TASK DUE TODAY (NOT REALLY THAT OPTIONAL, BUT UP TO YOU IF YOU WANT TO DO IT) Create your API Setup your database Populate with sample data SIT BACK / SIT BACK Create your getters and setters LISTEN UP LISTEN UP Test
  • 34. HOW DID YOU DO? SIT BACK / SIT BACK LISTENUP LISTEN UP http://www.flickr.com/photos/annagaycoan/3750144703/
  • 35. A LITTLE TASK DUE NEXT WEEK (GROUP WORK) In your groups 1 person sort out the HTML & CSS view 1 person play around with the web -> native apps SIT BACK / SIT BACK Get some kind of application onto a mobile device LISTEN UP LISTEN UP 1 person project manage and work out what is left to do
  • 36. CODE SAMPLES AND CONCEPTS Mobile websites tips & tricks (@fakedarren) Cache Manifest localStorage SIT BACK / SIT BACK Online / Offline Events LISTEN UP LISTEN UP JSONP

Editor's Notes