iPhone JavaScript Cookbook


iPhone JavaScript Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Build web applications for iPhone with a native look feel using only JavaScript, CSS, and XHTML
  • Develop applications faster using frameworks
  • Integrate videos, sound, and images into your iPhone applications
  • Work with data using SQL and AJAX
  • Write code to integrate your own applications with famous websites such as Facebook, Twitter, and Flickr
  • These practical recipes include code and screenshots offering a clear step-by-step guide using different frameworks

Book Details

Language : English
Paperback : 328 pages [ 235mm x 191mm ]
Release Date : June 2011
ISBN : 1849691088
ISBN 13 : 9781849691086
Author(s) : Arturo Fernandez Montoro
Topics and Technologies : All Books, Mobile Application Development, iOS, Mobile, Cookbooks, Java

Table of Contents

Preface
Chapter 1: Frameworks Make Life Easier
Chapter 2: Building Interfaces
Chapter 3: Events and Actions
Chapter 4: A Picture Speaks a Thousand Words
Chapter 5: Mastering Sound and Music
Chapter 6: Exchanging Data: AJAX
Chapter 7: Working with Data: Storage and SQL
Chapter 8: This is a Phone
Chapter 9: Location, Location, Location
Chapter 10: Web 2.0 Integration
Index
  • Chapter 1: Frameworks Make Life Easier
    • Introduction
    • Installing the iUI framework
    • Installing the UiUIKit framework
    • Installing the XUI framework
    • Installing the iWebKit framework
    • Installing the WebApp.Net framework
    • Installing the PhoneGap framework
    • Installing the Sencha Touch framework
    • Installing the Apple Dashcode framework
    • Chapter 2: Building Interfaces
      • Introduction
      • Creating a toolbar
      • Modifying the default status bar
      • Creating a footer
      • Creating a back button
      • Creating a button for the toolbar
      • Building a breadcrumb menu
      • Building the duo navigation buttons
      • Building the lists for items
      • Building menus using lists
      • Creating the toggle buttons
      • Creating a modal box with buttons
      • Building a search dialog
      • Building the information fields
      • Building forms with checkboxes, radio buttons, select fields, and text fields
      • Creating and customizing a notification box
      • Building a chat-style interface
      • Creating a date picker
      • Using different tabs
      • Chapter 3: Events and Actions
        • Introduction
        • Identifying the devices
        • Viewing applications in full screen
        • Detecting full screen or browser mode
        • Scaling to device width
        • Preventing scaling
        • Detecting one-finger events
        • Detecting multi-touch events
        • Preventing the default behavior for events
        • Detecting rotation events
        • Implementing drag-and-drop
        • Adding visual effects
        • Running your web application without Internet access
        • Chapter 4: A Picture Speaks a Thousand Words
          • Introduction
          • Choosing an icon image for the application
          • Specifying a splash image
          • Displaying an image inside a container
          • Creating a grid with images
          • Creating a carousel for images
          • Rotating images
          • Scaling an image by applying animations
          • Taking and displaying pictures
          • Drawing geometric figures
          • Applying colors
          • Working with gradients
          • Adding an activity indicator
          • Chapter 5: Mastering Sound and Music
            • Introduction
            • Making a beep alert
            • Making a vibrate alert
            • Creating an iPod playlist and playing a specific item
            • Loading an iTunes playlist
            • Playing an audio file
            • Playing a video
            • Recording an audio
                • Chapter 8: This is a Phone
                  • Introduction
                  • Calling a number
                  • Sending an SMS to a number
                  • Selecting contacts
                  • Creating a new contact
                  • Searching and displaying contacts
                  • Chapter 9: Location, Location, Location
                    • Introduction
                    • Detecting current orientation
                    • Identifying the current location
                    • Opening Google Maps at a specific location
                    • Calculating distances between two points
                    • Chapter 10: Web 2.0 Integration
                      • Introduction
                      • Embedding an RSS feed
                      • Opening a YouTube video
                      • Posting on your Facebook wall
                      • Retrieving recent tweets from Twitter
                      • Displaying photos from Flickr

                      Arturo Fernandez Montoro

                      Arturo Fernandez Montoro is a software architect specializing in design, development, testing, and deployment of high-traffic web applications. Since 2002, he often writes for different Linux and Open Source printed and online magazines, such as Todo Linux, Linux+, Linux Magazine, and Free Software Magazine. Also, he has written the iPhone JavaScript Cookbook for Packt Publishing. His professional experience includes technologies such as Django, Ruby on Rails, J2EE, PHP, web application servers, relational and NoSQL databases, JavaScript, HTML5, and CSS. He spent the last three years working as a software architect and a Python/Django lead developer. Currently, Arturo lives in Madrid working as a software architect for QDQ Media, the biggest online marketing agency in Spain. He can be reached at arturo@bsnux.com.

                      Code Downloads

                      Download the code and support files for this book.


                      Submit Errata

                      Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                      Errata

                      - 2 submitted: last submission 11 Oct 2012

                      Errata type: Typo | Page number: 33

                      Under How to do it... the first step. The code is not valid. Both tags are missing space. Instead of "linkhref" it should be "link href". And "scriptsrc" should be "script src".

                       

                      Errata type: Typo | Page number: 51

                      The last word on this page says "The required code is as follows" shouldn't be there.

                       

                      Sample chapters

                      You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                      Frequently bought together

                      iPhone JavaScript Cookbook +    HLSL Development Cookbook =
                      50% Off
                      the second eBook
                      Price for both: $39.00

                      Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                      What you will learn from this book

                      • Installing and configuring a set of frameworks to make your life easier for developing web applications for iPhone
                      • Designing graphical user interfaces for iPhone applications using XHTML, CSS, and JavaScript
                      • Working with different events, actions, and effects, including touch gestures, multi-touch events, drag & drop, and sliding
                      • Dealing with images and pictures including accessing the device's camera
                      • Adding video and sound for your iPhone web applications
                      • Applying AJAX for better performance in web applications
                      • Differences between native and web applications for iPhone
                      • Working with data and SQL using the new HTML 5 features of Safari Mobile
                      • Accessing phone-specific features such as the Address Book for contacts
                      • Recognizing accelerometer movements and other features about positioning and geolocation
                      • Integrating your application with popular third-party websites and services such as Facebook, Twitter, and Flickr

                      In Detail

                      Undoubtedly, the iPhone is one of the most exciting mobile devices in the world. Its iOS is used in other Apple devices such as the iPad and iPod Touch. With this book you'll learn how to build and develop applications for these devices without applying Apple's burdensome and at times restrictive technologies. Just use your experience and knowledge combined with web front-end technologies like JavaScript to build quality web apps. Nobody will know you haven't used Objective-C and Cocoa.

                      The iPhone JavaScript Cookbook offers a set of practical and clear recipes with a step-by-step approach for building your own iPhone applications applying only web technologies such as JavaScript and AJAX. Web developers won't need to learn a new programming language for building iOS applications with a native look and feel.

                      The first part of the book introduces you to the world of iPhone applications. Understanding how it works is required for designing good user interfaces for this device. You will continue learning about how to apply multimedia features to your applications. Common features of web applications, such as AJAX and SQL, can also be applied to our iPhone applications. The third part of the book explains how to deal with specific features of iPhone such as the accelerometer. At the end, you learn how to offer additional features through external websites. With the iPhone JavaScript Cookbook, you will be able to develop outstanding web applications with a for Apple's mobile devices, offering your users all of the advantages of the native look and feel.

                      Approach

                      Written in a cookbook style, this book offers solutions using a recipe-based approach. Each recipe contains step-by-step instructions followed by an analysis of what was done in each task and other useful information. The cookbook approach means you can dive into whatever recipes you want in no particular order.

                      Who this book is for

                      This book is for web developers interested in applying their knowledge for building web applications for iOS devices. You can develop your own iPhone web applications using nothing but JavaScript combined with XHTML and CSS. You can even give these apps a native look and feel though you won't be able to submit them to the App Store. You will develop an application for iOS without having to learn the Objective-C programming language. This is the book for any iPhone developer looking to side-step Apple's totalitarian App Store regime.

                      Code Download and Errata
                      Packt Anytime, Anywhere
                      Register Books
                      Print Upgrades
                      eBook Downloads
                      Video Support
                      Contact Us
                      Awards Voting Nominations Previous Winners
                      Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                      Resources
                      Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software