SlideShare a Scribd company logo
An Introduction to Sencha Touch
James Pearce
 Sr Director, Developer Relations

 @ jamespearce
   jamesp@sencha.com
An Introduction
       to
 Sencha Touch
“   Create amazing apps
            built
     on web standards
                          ”
Documents


Applications
Thin client


Thick client
One PC


Multiple devices
Sedentary usage


 Mobile usage
But everyone loves apps
An Introduction to Sencha Touch
An Introduction to Sencha Touch
An Introduction to Sencha Touch
The native challenge
             JS
        C# Palm   J2ME
    Microsoft

                        RIM           RIM
                                      Android
                                      Apple
Apple                     Air         Microsoft
                                      Palm
Obj-C
                       Java
         C++ Android


                                        Top U.S. Smartphone Platforms,
                                3 Month Average Ending December 2010
                                               comScore MobiLens 2010
An Introduction to Sencha Touch
An Introduction to Sencha Touch
A return to the web
Cross-platform
Familiar skills & tools
Decentralized
Easily updated
Indexed
Well-understood technologies
An Introduction to Sencha Touch
A New Mobile App Stack
                WebFonts        Video      Audio    Graphics
Device Access                                                  Server & Services

  Camera                    CSS Styling & Layout                    HTTP

  Location                                                          AJAX
                                   Javascript
  Contacts                                                          Events

    SMS                          Semantic HTML                     Sockets

 Orientation                                                         SSL
                 File Systems        Worker
                                                    x-App
    Gyro              DBs            Parallel                      More...
                                                   Messaging
                  App Cache         Processing
An Introduction to Sencha Touch
An Introduction to Sencha Touch
An Introduction to Sencha Touch
An Introduction to Sencha Touch
An Introduction to Sencha Touch
?
Introducing
Sencha Touch
The first JavaScript framework for building
  rich mobile apps with web standards
An Introduction to Sencha Touch
An Introduction to Sencha Touch
An Introduction to Sencha Touch
What’s in Sencha Touch?
Layouts & components
Theming & icons
Orientation & animation
Touch events & scroller
Data package
MVC framework
Components
Lists
- Nested, Grouped, Sortable
Carousel
Picker
Overlay
Slider
Forms & fields
Toolbars & buttons
HTML5
- Audio
- Video
- GeoLocation
Forms
Scrolling
Momentum/bounce physics

Hardware accelerated

Throughout all components:
- Lists
- Carousel
- Pickers
Touch Events
Built on native events

Abstracted for performance

Additional events
- Tap
- Double tap
- Tap and hold
- Swipe
- Rotate
- Drag & drop
Data Package
Models, Stores, and Proxies
- Associations
- Validation
- Local & server storage

Easily consume web services
- JSON/P
- XML
- YQL
Theming
Use CSS3 & SASS
- Flexible themes
- Highly optimized




e.g.

$base-color: #ff6699
“The Kitchen Sink”




                 http://sencha.com/x/5e
Architectural
Considerations
The classic web stack


                 req/res
User interface             Rendering
Business logic
   Storage
The next web stack



                   User interface
            sync
Security           Business logic
Storage               Storage
Write once,
run anywhere?
Not quite.
“   The Mobile Web
        is not a


                     ”
      320px Web
An Introduction to Sencha Touch
But you can re-use
   a lot of code
Views                 Views

        Controllers
         Models
          Stores
         Proxies
            json
Ext JS                   Sencha Touch
        buttongroup                   actionsheet
     colorpalette        button          audio
          cycle       component            carousel
        editor         container             list
  editorgrid           dataview                map
        grid          datepicker                nestedlist
multislider                panel                picker
  progress                slider                pickerslot
splitbutton               spacer                segbutton
  treepanel              toolbar               sheet
    viewport            tabpanel             tabbar
       window                              video
User Interface
Components
List
var list = new Ext.List({
  store: store,
  itemTpl:
    '{firstName} {lastName}',
  grouped: true,
  indexBar: true
});
Nested List
var list = new Ext.NestedList({
  store: store,
  displayField: 'name',
  title: 'My List',
  updateTitleText: true,
  getDetailCard:
    function(record, parent) {..}
});
Carousel
var car = new Ext.Carousel({
  direction: 'horizontal',
  indicator: true,
  items: [
    ..
  ]
});
Sheets
var sheet = new Ext.ActionSheet({
  items: [
    {
      text: 'Delete draft',
      ui: 'decline'
    }, {
      text: 'Save draft'
    }, {
      text: 'Cancel',
    }
  ]
});
sheet.show();
An Introduction to Sencha Touch
A Typical
Application
An Introduction to Sencha Touch
http://senchalearn.github.com/seattlebars/
APIs at work...
Location API to get lat/long

MongoLabs to get city name

Yelp to get businesses
https://github.com/
    senchalearn/
     seattlebars
Final Thoughts
Thick client, thin server


The shortfall in the cloud
Location Services
        Adaptation                         Analytics



   Web Fonts                                   Data Sync




Video Serving                                   Ad Serving


                                             $
       Image Serving                       Commerce
                        Network APIs
http://mysite.com/myimage.png




http://src.sencha.io/http://mysite.com/myimage.png
PhoneGap
A platform that allows you to package web applications
             and get access to device APIs




                 http://phonegap.com
+
built with

Apps vs Web technology
An Introduction to Sencha Touch
James Pearce
 Sr Director, Developer Relations

 @ jamespearce
   jamesp@sencha.com

More Related Content

PDF
Building Cloud-Based Cross-Platform Mobile Web Apps
James Pearce
 
PDF
An Intro to Mobile HTML5
James Pearce
 
PDF
Bd conf sencha touch workshop
James Pearce
 
PPTX
Keyword Services Platform (KSP) from Microsoft adCenter
goodfriday
 
PPTX
AJAX Patterns with ASP.NET
goodfriday
 
PDF
Dot net training bangalore
IGEEKS TECHNOLOGIES
 
PDF
Will Web 2.0 applications break the cloud?
Flaskdata.io
 
PDF
Industrial training in .net
ResistiveTechnosource Pvt. Ltd.
 
Building Cloud-Based Cross-Platform Mobile Web Apps
James Pearce
 
An Intro to Mobile HTML5
James Pearce
 
Bd conf sencha touch workshop
James Pearce
 
Keyword Services Platform (KSP) from Microsoft adCenter
goodfriday
 
AJAX Patterns with ASP.NET
goodfriday
 
Dot net training bangalore
IGEEKS TECHNOLOGIES
 
Will Web 2.0 applications break the cloud?
Flaskdata.io
 
Industrial training in .net
ResistiveTechnosource Pvt. Ltd.
 

Similar to An Introduction to Sencha Touch (20)

PDF
Building Cross Platform Mobile Web Apps
James Pearce
 
PDF
Building cross platform mobile web apps
James Pearce
 
PDF
HTML5 and the dawn of rich mobile web applications pt 1
James Pearce
 
PDF
HTML5 and the dawn of rich mobile web applications
James Pearce
 
PDF
A Snapshot of the Mobile HTML5 Revolution
James Pearce
 
PDF
Cross platform mobile web apps
James Pearce
 
PPTX
Win8 ru
Igor Sychev
 
KEY
Building Rich Mobile Apps with HTML5, CSS3 and JavaScript
Sencha
 
PPTX
Windows Phone 7 and Silverlight
Glen Gordon
 
PDF
World of javascript
Rapee Suveeranont
 
PDF
The Modern Web, Part 1: Mobility
David Pallmann
 
PDF
Polysource-IT Profile
Helen
 
PDF
Polysource-IT Profile
Helen
 
PDF
The Enterprise Dilemma: Native vs. Web
Motorola Mobility - MOTODEV
 
PDF
Joe Staner Zend Con 2008
ZendCon
 
PDF
Poly Source It Profile
moseskhedi
 
PDF
Polysource It Profile
elenarys
 
PPTX
ArcReady - Architecting For The Client Tier
Microsoft ArcReady
 
PPTX
Partying with PHP (…and the Microsoft Platform)
goodfriday
 
PPSX
Silverlight development
Anurag Gupta
 
Building Cross Platform Mobile Web Apps
James Pearce
 
Building cross platform mobile web apps
James Pearce
 
HTML5 and the dawn of rich mobile web applications pt 1
James Pearce
 
HTML5 and the dawn of rich mobile web applications
James Pearce
 
A Snapshot of the Mobile HTML5 Revolution
James Pearce
 
Cross platform mobile web apps
James Pearce
 
Win8 ru
Igor Sychev
 
Building Rich Mobile Apps with HTML5, CSS3 and JavaScript
Sencha
 
Windows Phone 7 and Silverlight
Glen Gordon
 
World of javascript
Rapee Suveeranont
 
The Modern Web, Part 1: Mobility
David Pallmann
 
Polysource-IT Profile
Helen
 
Polysource-IT Profile
Helen
 
The Enterprise Dilemma: Native vs. Web
Motorola Mobility - MOTODEV
 
Joe Staner Zend Con 2008
ZendCon
 
Poly Source It Profile
moseskhedi
 
Polysource It Profile
elenarys
 
ArcReady - Architecting For The Client Tier
Microsoft ArcReady
 
Partying with PHP (…and the Microsoft Platform)
goodfriday
 
Silverlight development
Anurag Gupta
 
Ad

More from James Pearce (14)

PDF
Mobile Device APIs
James Pearce
 
PDF
The City Bars App with Sencha Touch 2
James Pearce
 
PDF
A mobile web app for Android in 75 minutes
James Pearce
 
PDF
HTML5 and the dawn of rich mobile web applications pt 2
James Pearce
 
PDF
Building a Mobile App with Sencha Touch
James Pearce
 
PDF
Create a mobile web app with Sencha Touch
James Pearce
 
PDF
City bars workshop
James Pearce
 
PDF
San Diego Hackathon
James Pearce
 
PDF
Creating and Distributing Mobile Web Applications with PhoneGap
James Pearce
 
PDF
Theming and Sass
James Pearce
 
PDF
Source Dev Con Keynote
James Pearce
 
PDF
Building tomorrow's web with today's tools
James Pearce
 
PDF
Sencha Touch for Rubyists
James Pearce
 
PDF
Serving Mobile Apps from Content Management Systems
James Pearce
 
Mobile Device APIs
James Pearce
 
The City Bars App with Sencha Touch 2
James Pearce
 
A mobile web app for Android in 75 minutes
James Pearce
 
HTML5 and the dawn of rich mobile web applications pt 2
James Pearce
 
Building a Mobile App with Sencha Touch
James Pearce
 
Create a mobile web app with Sencha Touch
James Pearce
 
City bars workshop
James Pearce
 
San Diego Hackathon
James Pearce
 
Creating and Distributing Mobile Web Applications with PhoneGap
James Pearce
 
Theming and Sass
James Pearce
 
Source Dev Con Keynote
James Pearce
 
Building tomorrow's web with today's tools
James Pearce
 
Sencha Touch for Rubyists
James Pearce
 
Serving Mobile Apps from Content Management Systems
James Pearce
 
Ad

Recently uploaded (20)

PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Doc9.....................................
SofiaCollazos
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
The Future of Artificial Intelligence (AI)
Mukul
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Software Development Methodologies in 2025
KodekX
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Doc9.....................................
SofiaCollazos
 

An Introduction to Sencha Touch