Developing Hybrid Applications for the iPhone Using HTML, CSS, and JavaScript to Build Dynamic Apps for the iPhone: Using HTML, CSS, and JavaScript to Build Dynamic Apps for the iPhone

by
Edition: 1st
Format: Paperback
Pub. Date: 2009-06-22
Publisher(s): Addison-Wesley Professional
List Price: $41.99

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

"For those not ready to tackle the complexities of Objective-C, this is a great way to get started building iPhone apps. If you know the basics of HTML, JavaScript, and CSS, yours"ll be building apps in no time." -August Trometer, Owner of FoggyNoggin Software, www.foggynoggin.com Discover the Easier, Faster Way to Build High-Quality iPhone Applications Now, you donrs"t need to dive headfirst into Objective-C to write state-of-the-art applications for the iPhone. You can use web development tools and technologies you already know: JavaScript, HTML, and CSS. In this book, long-time web and mobile application developer Lee S. Barney shows you how to use the QuickConnect and PhoneGap frameworks to create secure, high-quality, modular hybrid iPhone applications. Lee S. Barney walks you through the entire hybrid iPhone development process, from creating great user interfaces to compiling, deploying, and executing applications. Along the way, he introduces techniques and sample code designed to streamline development, eliminate complexity, optimize performance, and leverage all iPhoners"s native capabilities-from its accelerometer and GPS to its built-in database. Coverage includes Using Dashcode and Xcode together to create unique, exciting hybrid iPhone applications Using the QuickConnect JavaScript API to perform tasks ranging from vibrating the phone to accessing the accelerometer and GPS location data Accessing native iPhone functionality using the PhoneGap JavaScript API Storing, retrieving, and managing data on the iPhone, even without network access Using XMLHttpRequest to access or synchronize remote data and use web services Creating Google-based maps for your own app that work like those you see in the iPhoners"s Maps application This book systematically lowers the barriers to iPhone development, enabling web developers to build any iPhone application they can imagine without long development cycles or steep learning curves!

Author Biography

Lee S. Barney (Rexburg, Idaho) is a professor at Brigham Young University—Idaho in the Computer Information Technology Department of the Business and Communication College. He has worked as CIO and CTO of @HomeSoftware, a company that produced web-based, mobile data, and scheduling applications for the home health care industry. Prior to this, he worked for more than seven years as a programmer, senior software engineer, quality assurance manager, development manager, and project manager for AutoSimulations, Inc., the leading supplier of planning and scheduling software to the semiconductor industry. He is the author of Oracle Database AJAX & PHP Web Application Development.

Table of Contents

Creating Hybrid iPhone Applications with JavaScript
Introduction
Hybrid application runs on the phone but is built in JavaScript
Hybrid applications are not mini web browsers
Hybrid applications use standard iPhone UI components
Tools and Modularity make hybrid application creation easy
Developing with Dashcode and Xcode Hybrid application creation makes use of both Dashcode and Xcode
Dashcode is used for creating the user interface and JavaScript creation, editing, and debugging, and Xcode is used for compiling, deploying, and executing the application on the device
This chapter discusses and gives examples of how these two tools can effectively be used together to develop hybrid applications without burdening the developer
Introduction
Use Dashcode to
Create
Debug
Use Xcode to Deploy
The Dashcode QChybrid custom application template
Forward reference to appendix B for installation
Component parts
Adding Dashcode library objects
Adding JavaScript code to handle events in the interface
The Xcode hybrid application template
Forward reference to appendix B for installation
Component parts
Objective-C iPhone application design
Delegates and Controllers
The application delegate
Explanation and code
The browser view controller
Explanation
Purpose
Rotation of the phone
Dialing phone numbers
Source code example and description
Forward reference to Chapter 7
JavaScript Modularity in iPhone Applications This chapter shows the reader how to create and use modularity in JavaScript to quickly and easily create dynamic iPhone hybrid applications
Modularity
What is modularity?
Tight cohesion
Loose coupling
Why modularity?
Eases development
Eases support
Division of labor
Business control functions in JavaScript
Purpose
Encapsulate decision making
Handles one or few decisions
Should data be retrieved?
What data should be retrieved?
Forward reference to Chapter 3
Example
Retrieving user information
Source code example and description
View control functions in JavaScript
Purpose
Encapsulate screen updating
Code becomes reusable for multiple commands
Handles updating one or more portions of the screen
Multiple VCF can be used for one command
Example
Displaying user information
Source code example and description
Command - response behavior
Linking BCF's and VCF's
Dispatching
One BCF per command
Multiple VCF's per command
Command validation
Validation must happen prior to dispatching to BCF's and VCF's
Multiple Validation functions per comma
Table of Contents provided by Publisher. All Rights Reserved.

Excerpts

*** Developing Hybrid Applications for the iPhone PrefaceThis book shows you how to create a new type of iPhone application: hybrid applications written in HTML, CSS, and JavaScript. Hybrid iPhone applications are standalone applications that run like regular applications on your iPhone, but don't require the files to live on a server on the Internet.Creating hybrid iPhone applications reduces creation time and the learning curve required to get your application into the hands of your customers, because you don't have to learn Objective-C or have an intimate knowledge of the Cocoa frameworks. Hybrid Application Development ToolsThis book covers the two most commonly used open-source JavaScript software packages for writing applications for the iPhone and iPod touch devices: QuickConnectiPhone and PhoneGap. These packages enable you to build applications that access native device features directly from JavaScript, such as vibration, GPS location information, the accelerometer, and many other thingsmdall without writing a single line of Objective-C or Cocoa.QuickConnectiPhone, downloaded from http://quickconnect.pbwiki.com , exposes the most native device behavior and provides a highly engineered, full-featured framework for development use. QuickConnectiPhone dramatically reduces your application's time-to-market because part of the framework consists of all of the glue code you have to typically write in Objective-C, Cocoa, and JavaScript. Best of all, it does not require a remote server for hosting JavaScript, HTML, and CSS files.The second package is PhoneGap, downloaded from http://phonegap.com . PhoneGap exposes fewer native behaviors and is a library rather than a full-fledged framework. As a library, PhoneGap enables you to engineer your application any way you want. It does, however, require a remote server for hosting files.To reduce the learning curve and improve your understanding, good, solid examples are used throughout this book.If you want to create installable iPhone applications, have the web skills required, and if you want to create dynamic, compelling solutions that people will use, this book shows you how using these two packages.Table P--1 compares what each package can do at the time of writing this book. Table P--1: Comparing the Features of QuickConnectiPhone and PhoneGapBehavior/Data AvailableQuickConnectiPhonePhoneGapGPSYesYesAccelerometerYes

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.