Book Image

jQuery Mobile Web Development Essentials - Third Edition

By : Raymond Camden, Andy Matthews
Book Image

jQuery Mobile Web Development Essentials - Third Edition

By: Raymond Camden, Andy Matthews

Overview of this book

jQuery Mobile is a HTML5-based touch-optimized web framework. jQuery Mobile can be used to build responsive cross-platform websites and apps for a wide range of smartphones, tablets, and desktop devices. The jQuery Mobile framework can be integrated with other mobile app frameworks such as PhoneGap, IBM Worklight, and more. Introduction to jQuery Mobile explains how to add the framework to your HTML pages to create rich, mobile-optimized web pages with minimal effort. You’ll learn how to use jQuery Mobile’s automatic enhancements and configure the framework for customized, powerful mobile-friendly websites. We then dig into forms, events, and styling. You'll see how jQuery Mobile automatically enhances content, and will find out how to use the JavaScript API to build complex sites. We’ll introduce you to how jQuery Mobile can be themed as well looking into how JavaScript can be used for deep sets of customizations. The examples are ready to run and can be used to help kick-start your own site. Along the way, you will leverage all the concepts you learn to build three sample mobile applications.
Table of Contents (20 chapters)
jQuery Mobile Web Development Essentials Third Edition
About the Authors
About the Reviewer

Contacting the hotel

Now let's take a look at the contact page. This will provide the user with information on how to reach the hotel:

Listing 5-5: contact.html
<div data-role="page">
      <div data-role="header">
        <h1>Contact Us</h1>
      <div role="main" class="ui-content">
          <b>Phone:</b> <a href="tel:555-555-5555">555-555-5555</a><br/>
          <b>Email:</b> <a href="mailto:[email protected]">[email protected]</a>
      <div data-role="footer">
        <h4>&copy; Camden Hotel 2012</h4>

As before, we've wrapped our page in the proper script blocks and div tags. Make a special note of our two links. Both the Phone and E-mail links use URLs that may not look familiar to you. The first, tel:555-555-555, is actually a way to ask the mobile device to...