1204 jquery mobile web development essentials

247 63 0
1204 jquery mobile web development essentials

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

www.it-ebooks.info jQuery Mobile Web Development Essentials Learn to use the touch-optimized, cross-device, cross-platform jQM web framework for smartphones and tablets Raymond Camden Andy Matthews BIRMINGHAM - MUMBAI www.it-ebooks.info jQuery Mobile Web Development Essentials 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: May 2012 Production Reference: 1200412 Published by Packt Publishing Ltd Livery Place 35 Livery Street Birmingham B3 2PB, UK ISBN 978-1-84951-726-3 www.packtpub.com Cover Image by Faiz Fattohi (faizfattohi@gmail.com) www.it-ebooks.info Credits Authors Project Coordinator Raymond Camden Sai Gamare Andy Matthews Proofreader Linda Morris Reviewers Md Mahmud Ahsan Shameemah Kurzawa M Ali Qureshi Monica Ajmera Mehta Production Coordinators Joe Wu Nilesh R Mohite Acquisition Editor Prachali Bhiwandkar Usha Iyer Lead Technical Editor Dayan Hyames Indexer Cover Work Nilesh R Mohite Technical Editor Sonali Tharwani www.it-ebooks.info About the Authors Raymond Camden is a Developer Evangelist for Adobe focusing on web standards and mobile development He is a contributing author to numerous technical books including the best selling ColdFusion Web Application Construction Kit, published by Adobe Press He has spoken at conferences around the world and maintains many popular ColdFusion community websites He is the manager of www.RIAForge.org, www.CFLib.org, and writes at his blog www.raymondcamden.com Raymond is happily married and a proud father to three kids and is somewhat of a Star Wars nut I'd like to thank everyone on the jQuery and jQuery Mobile teams for making tools that have changed my life Without your hard work and dedication, the web would be less awesome Thank you Andy, for coming on board and helping to make this book better www.it-ebooks.info Andy Matthews has been working as a web and application developer for 13 years, with an experience in a wide range of industries, and has a skill set which includes graphic design, programming, business strategy and planning, and marketing Throughout his career he has been privileged to work on projects which interfaced with industry giants such as Craigslist, written code that allowed Enterprise level sales teams to quickly and efficiently build presentations for their clients He stays up-to-date with current trends in the marketplace by helping previous employers transition to newer, more effective, coding habits and standards He is a frequent speaker at conferences around the country He has also developed software for the open source community, and he currently works for a social networking startup Goba.mobi in Nashville, TN I'd like to thank my wife Jaime, and my children Noelle, Evan, and Mason for their patience and grace in letting me pursue my passion Most of all, thank you God for giving me the desire to learn, the ability to pick things up quickly, and the perseverance to apply the knowledge I've gained throughout the years www.it-ebooks.info About the Reviewers Md Mahmud Ahsan has been developing and leading some medium to large web applications for the past six years He has worked with a number of PHP frameworks (Zend, CodeIgniter) and generally likes working with an MVC design pattern His experience ranges from developing web applications from scratch, as well as modifying and adding functionality to existing custom in-house systems, open source applications, and commercial applications He graduated in Computer Science and Engineering, and is a PHP5 Zend Certified Engineer He is also an expert in iPhone applications development and has in depth working knowledge in Objective C, C, C++, Cocos2D, Box2D, and Xcode Apart from his full time job, he maintains a blog at http://thinkdiff.net He lives in Bangladesh with his wife Jinat Jahan Currently, he is self employed and has been developing iPhone and iPad applications, which he publishes through his own site http://ithinkdiff.net Besides this, he is a part time freelancer and works on LAMP based web applications development He was a technical reviewer for the following books published by Packt Publishing: • Zend Framework 1.8 Web Application Development Book • PHP jQuery Cookbook • jQuery UI themes • Android 3.0 Application Development Cookbook I'm very grateful to my father who brought a computer for me in 2001, since then I have loved programming and work in various technologies www.it-ebooks.info Shameemah Kurzawa started programming when she was at high school Being motivated to be a System Analyst, she pursued both undergraduate and postgraduate studies in Business Information Systems and Software Engineering respectively She has been working as a Web Developer/Analyst for the past six years; she has worked in the past for Australia's renowned broadcasting company SBS and has freelanced for her own company since 2010 Besides work she enjoys spending time with her family, traveling, and cooking She likes to read and try new web technologies She has previously reviewed jQuery UI themes and PHP jQuery Cookbook for Packt Publishing I would like to thank my husband and the Packt team for their support and understanding in helping me review this book M Ali Qureshi is based in Lahore, Pakistan He has developed a comprehensive understanding of web development processes having worked in the capacity of Web Designer, Frontend developer, PHP Developer, Flash ActionScript Developer, Software Engineer, and Project Manager in the last 12 years designing and developing creative, interactive and usable web solutions, that get high rankings in search engines and drive qualified traffic to websites, making them a successful technology investment He has done a Masters in Economics and Computer Sciences Running along Lahore canal early in the morning, watching good movies and listening to music, working out at the gym, reading books, discussing politics, and an occasional stroll in Lawrence Garden, Lahore are a few things that Ali mostly enjoys When not working, he spends his time blogging and exploring new technologies Ali is an avid sports fan and likes watching Cricket, especially Pakistan and Australia which are his favorite teams www.it-ebooks.info Joe Wu is a Senior PHP Web Developer and has more than four years of commercial experience to date Joe is always enthusiastic about exploring new ideas, technologies and opportunities that arise He has a wide range of skills, specializing primarily in PHP, CodeIgniter PHP Framework, MySQL, JQuery, HTML, and CSS Joe's skills and experiences further extends out to various other technologies and tools such as Subversion, Microsoft CRM, SOAP, Bash Scripting, and Symfony PHP Framework Joe is also a professional Badminton player, achieving the highest ranking of 59 in the world in singles and top ranking in Australasia in 2010 If you would like to get in touch with Joe to discuss any opportunities please not hesitate to visit his personal website: http://www.joewu.net/ www.it-ebooks.info 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 service@packtpub.com 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 www.it-ebooks.info Becoming an expert - Build an RSS Reader application This object will store the results from our feeds so that we don't have to constantly re-fetch them That's why the following line: if(!feedCache[thisFeed.url]) { is run before we any additional network calls So how we actually get the feed? Google has a cool service called the Feed API (https://developers.google com/feed/) It lets us use Google to handle fetching in the XML of an RSS feed and converting it to JSON JavaScript can work with XML, but JSON is far easier since it becomes regular, simple JavaScript objects We've got a bit of error handling, but if everything works well, we simply cache the result The final bit is a call to displayFeed: Listing 13-9: displayFeed function displayFeed(url) { var entries = feedCache[url]; var s = "
    "; for(var i=0; i

Ngày đăng: 06/03/2019, 17:04

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Authors

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • Chapter 1: Preparing your First jQuery Mobile Project

    • Important preliminary points

    • Building an HTML page

    • Getting jQuery Mobile

    • Implementing jQuery Mobile

    • Working with data attributes

    • Summary

  • Chapter 2: Working with jQuery Mobile Pages

    • Important preliminary points

    • Adding multiple pages to one file

    • jQuery Mobile, links, and you

    • Working with multiple files

    • jQuery Mobile and URLs

    • Additional customization

      • Page titles

      • Prefetching content

      • Changing page transitions

    • Summary

  • Chapter 3: Enhancing Pages with Headers, Footers, and Toolbars

    • Important preliminary points

    • Adding headers

    • Icon sneak peak

    • Working with back buttons

    • Working with footers

    • Creating fixed and full screen headers and footers

      • Full screen positioning

    • Working with navigation bars

      • Persisting navigation bar footers across multiple pages

    • Summary

  • Working with Lists

    • Creating lists

    • Working with list feature

      • Creating Inset lists

      • Creating list dividers

      • Creating lists with count bubbles

      • Using thumbnails and icons

      • Creating Split Button lists

      • Using a search filter

    • Summary

  • Chapter 5: Getting Practical – Building a Simple Hotel Mobile Site

    • Welcome to the Hotel Camden

    • The home page

    • Finding the hotel

    • Listing the hotel rooms

    • Contacting the hotel

    • Summary

  • Chapter 6: Working with Forms and jQuery Mobile

    • Before you begin

    • What jQuery Mobile does with forms

      • Working with radio buttons and checkboxes

      • Working with select menus

      • Search, toggle, and slider fields

        • Search fields

        • Flip toggle fields

        • Slider fields

      • Using native form controls

    • Working with "mini" fields

    • Summary

  • Chapter 7: Creating Modal Dialogs, Grids, and Collapsible Blocks

    • Creating dialogs

    • Laying out content with grids

    • Working with collapsible content

    • Summary

  • Chapter 8: jQuery Mobile Configuration, Utilities, and JavaScript methods

    • Configuring jQuery Mobile

    • Using jQuery Mobile utilities

      • Page methods and utilities

      • Path and URL related utilities

      • Miscellaneous utilities

    • jQuery widget and form utilities

    • Summary

  • Chapter 9: Working with Events

    • Working with physical events

    • Handling page events

      • What about $(document).ready?

      • Creating a real example

    • Summary

  • Chapter 10: Moving further with the Notekeeper Mobile Application

    • What is a mobile application?

    • Designing your first mobile application

      • Listing out the requirements

        • Building your wireframes

        • Designing the add note wireframe

        • Display notes wireframe

        • View note/delete button wireframe

      • Writing the HTML

    • Adding functionality with JavaScript

      • Storing Notekeeper data

        • Using localStorage

      • Effective use of boilerplates

      • Building the Add Note feature

        • Adding bindings

        • Collecting and storing the data

        • Building the Display Notes feature

      • Dynamically adding notes to our listview

      • Viewing a note

        • Using the Live function

      • Dynamically creating a new page

      • Deleting a note

    • Summary

  • Chapter 11: Enhancing jQuery Mobile

    • What's possible?

    • The visual building blocks of jQuery Mobile

      • Border-radius

      • Applying drop shadows

        • Using text-shadow

        • Using box-shadow

        • CSS gradients

    • The basics of jQuery Mobile theming

      • Bars (.ui-bar-?)

      • Content blocks (.ui-body-?)

      • Buttons and listviews (.ui-btn-?)

      • Mixing and matching swatches

      • Site-wide active state

      • Default icons

    • Creating and using a custom theme

      • What's ThemeRoller?

        • Using ThemeRoller

        • Preview

      • Colors

        • Inspector

        • Tools

      • Creating a theme for Notekeeper

        • Exporting your theme

    • Creating and using custom icons

      • CSS Sprites

      • Designing your first icon

      • High and low resolution

    • Updating the Notekeeper app

      • Adding our custom theme

      • Adding our custom icon

    • Summary

  • Chapter 12: Creating Native Applications

    • HTML as a native application

      • Working with PhoneGap

      • Adding PhoneGap functionality

    • Summary

  • Chapter 13: Becoming an expert - Build an RSS Reader application

    • RSS Reader – the application

    • Creating the RSS Reader Application

      • The displayFeeds function

      • Storing our feeds

      • Adding an RSS feed

      • Viewing a feed

      • Creating the entry view

      • Going further

    • Summary

  • Index

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan