HTML, CSS & JavaScript Mobile Development For Dummies
by William Harrel
HTML, CSS & JavaScript Mobile Development For Dummies
Published by
John Wiley & Sons, Inc.
111 River Street
Hoboken, NJ 07030-5774
www.wiley.com
Copyright 2011 by John Wiley & Sons, Inc., Hoboken, NJ
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.
Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United States and other countries, and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated with any product or vendor mentioned in this book.
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Website is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Website may provide or recommendations it may make. Further, readers should be aware that Internet Websites listed in this work may have changed or disappeared between when this work was written and when it is read.
For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.
For technical support, please visit www.wiley.com/techsupport.
Wiley also publishes its books in a variety of electronic formats and by print-on-demand. Not all content that is available in standard print versions of this book may appear or be packaged in all book formats. If you have purchased a version of this book that did not include media that is referenced by or accompanies a standard print version, you may request this media by visiting http://booksupport.wiley.com . For more information about Wiley products, visit us www.wiley.com.
Library of Congress Control Number: 2011935811
ISBN 978-1-118-02622-9 (pbk); ISBN 978-1-118-15763-3 (ebk); ISBN 978-1-118-15762-6 (ebk); ISBN 978-1-118-15764-0 (ebk)
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
About the Author
William Harrel has nearly 25 years of digital design experience. He was one of the pioneers of publishing on desktop computers, starting with the very first digital design and graphics programs, PageMaker and Photoshop. Like so many of the early desktop publishers, with the emergence of the World Wide Web, he found that making the transition to web design was the next logical step. His design firm has designed hundreds of websites, Flash websites, and electronic documents. His earlier books on Photoshop, PageMaker, and digital media in general were some of the first publications on these topics.
William Harrel has authored or coauthored 19 books on designing both print media and electronic documents, such as websites, PDFs, Flash sites and Flash applications, slide and multimedia presentations, on computers. These include titles on Photoshop, Acrobat (Acrobat For Dummies), PageMaker, Flash, Director, and several other graphics and publishing packages.
His latest online courses, Introduction to Adobe Flash CS4, Introduction to Adobe Flash CS5, Intermediate Adobe Flash CS4, and Intermediate Adobe Flash CS5, are currently offered at more than 2,500 colleges and universities. These are fully accredited courses offering in-depth instruction on Flash, including lessons on developing Flash applications for handheld devices.
He has also written hundreds of magazine articles, ranging in subject matter from Mac, PC, and other hardware reviews to all types of software packages including page layout, graphics, web design, Flash, multimedia, and word processing in such notable magazines as PC World, Home Office Computing, Compute, Windows Magazine, Publish, Entrepreneur, Home Office, and many, many others. He currently reviews printers, notebook computers, and tablets for Computer Shopper.
Harrel's blog, Communications Technology Watch ( http://commtechwatch.com
), is a well-respected source for information related to media designed for and on computers. Communications Technology Watch contains volumes of material on using Flash and other applications, including most programs in the Adobe Creative Suite.
William Harrel was also the owner-operator of a nationwide Internet Service Provider (ISP) for 14 years. In addition to hosting thousands of wWebsites, his ISP firm designed and maintained websites for hundreds of clients. The firm also specialized in Voice over IP (VoIP) telecommunications technology, which entailed (in part) designing web apps for integrating mobile devices into their customers' VoIP phone systems.
Harrel has managed and been the chief designer at his design firm for well over two decades. The firm has designed websites and other marketing material for such notable firms as the California Spine Institute, local Red Cross chapters, local chapters of Narcotics Anonymous, and scores of others. Nowadays, designing mobile versions of his clients' websites is part of the normal course of his firm's business.
Dedication
To my lovely 13-year-old daughter, Samantha, who puts up with my long and inconveniently timed hours sitting in front of a computer.
Author's Acknowledgments
If it weren't for the fine folks at Wiley Publishing, including Katie Feltman, Christopher Morris, Barry Childs-Helton, Debbye Butler, Brian Walls, and Ronald Norman, this book would not have been possible. These projects require a herculean effort on everybody's part. Thank you for the hard work in turning this into a top-notch publication.
Thanks also to Bill Sanders of sunlight.com for his tremendous help in developing the JavaScript sections of this book. Without his contributions, this book would not be nearly as complete a work on mobile website development. Bill stepped in and helped on a moment's notice, and I'm truly grateful.