Sencha Touch Mobile JavaScript Framework Build web applications for Apple iOS and Google Android touchscreen devices with this first HTML5 mobile framework John E. Clark Bryan P. Johnson BIRMINGHAM - MUMBAI Sencha Touch Mobile JavaScript Framework Copyright © 2012 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: February 2012 Production Reference: 1090212 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK.. ISBN 978-1-84951-510-8 www.packtpub.com Cover Image by Parag Kadam ([email protected]) Credits Authors Project Coordinator John E. Clark Michelle Quadros Bryan P. Johnson Proofreader Aaron Nash Reviewer Dave Kinsella Indexer Rekha Nair Senior Acquisition Editor Usha Iyer Graphics Manu Joseph Lead Technical Editor Alina Lewis Production Coordinator Aparna Bhagat Technical Editors Apoorva Bolar Cover Work Naheed Shaikh Aparna Bhagat Copy Editor Brandt D'Mello About the Authors John E. Clark holds a Master's Degree in Human-Computer Interaction from Georgia Tech and an undergraduate degree in Music Engineering from Georgia State University. John and his co-author, Bryan Johnson, worked together at MindSpring, and later EarthLink, starting out in technical support and documentation, before moving into application development, and finally, management of a small development team. After leaving Earthlink in 2002, John began working independently as a consultant and programmer, before starting Twelve Foot Guru, LLC, with Bryan, in 2005. John has been working with Sencha Touch since the first early beta releases. He has also worked with Sencha's ExtJS since the early days, when it was still known as YUI-Ext. When he is not buried in code, John spends his time woodworking, playing guitar, and brewing his own beer. I would like to thank my family for all of their love and support. I would also like to thank Bryan for his help, his patience, and his continued faith in our efforts. Bryan P. Johnson is a graduate of the University of Georgia. Bryan went to work for MindSpring Enterprises in late 1995, where he met his co-author John Clark. At MindSpring, and later Earthlink, for over seven years, Bryan served in multiple positions, including Director of System Administration and Director of Internal Application Development. After leaving Earthlink, Bryan took some time off to travel before joining John in starting Twelve Foot Guru. Bryan has worked with Sencha's products since the early days of YUI-Ext and has used Sencha Touch since its first betas. I would like to thank my family for their support and my co-author John for his patience during the creation of this book. About the Reviewer Dave Kinsella has been a professional web developer since 1996. Over the years, he has worked with many different technologies on projects ranging from public websites and web applications to large intranet content management systems. He has never considered himself to be a specialist in any particular field other than the general topic of "Web Technology" and spends a lot of his spare time trying out new ideas and techniques. Many of these can be found on his blog at webdeveloper2.com. Dave is currently employed by Quantiv Limited, as the Head of Interactive Design, where he designs and builds flexible web-based interfaces for complex data-processing applications, using ExtJS and Sencha Touch. www.PacktPub.com Support files, eBooks, discount offers and more You might want to visit www.PacktPub.com for support files and downloads related to your book. Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub. com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. Why Subscribe? • Fully searchable across every book published by Packt • Copy and paste, print and bookmark content • On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access. Table of Contents Preface 1 Chapter 1: Let's Begin with Sencha Touch! 7 Frameworks 8 Building from a foundation 10 Building with a plan 11 Building with a community 12 Mobile application framework 12 Native application versus web application 12 Web-based mobile frameworks 14 Web frameworks and touch 16 Designing applications for mobile and touch 17 Why touch? 18 Getting started with Sencha Touch 18 The API 19 Examples 20 The Kitchen Sink application 20 Learn 21 Forums 21 Setting up your development environment 21 Set up web sharing on Mac OSX 22 Install a web server on Microsoft Windows 23 Download and install the Sencha Touch framework 24 Additional tools for developing with Sencha Touch 25 Safari Web Inspector 25 Other Sencha products 26 Sencha Animator 26 Sencha.io 27 Sencha Touch Charts 27 RemoteJS and EventRecorder 28
Description: