Book Image

jQuery Mobile First Look

Book Image

jQuery Mobile First Look

Overview of this book

Table of Contents (17 chapters)
jQuery Mobile First Look
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

How to get jQuery mobile


There should be no problems at all obtaining a copy of jQuery Mobile, but anyway, here is a quick walkthrough to get all the mobile development enthusiasts out there started.

The fastest, easiest way to include jQuery Mobile into your website is by downloading one of the CDN-hosted versions that the jQuery Mobile project provides, which include images as well.

You can choose from two types of packages to download: one is uncompressed and for debugging purposes only (very large size); the other one is the minified and gzipped set of files which are ready to deploy.

Note

jQuery Mobile 1.0 Alpha 2 requires jQuery 1.4.4, which can be download from http://docs.jquery.com/Downloading_jQuery.

CDN-hosted JavaScript can be obtained from:

CDN-hosted CSS can be downloaded from:

A Zip file is also available for those willing to host the files themselves. The Zip file contains both versions of the JavaScript library (uncompressed and minified), all the required images, and CSS instructions, and can be downloaded from the following URL:

If you have chosen to make use of the CDN-hosted versions, the following couple of lines of code can be used to link to the libraries and the CSS stylesheet needed to set up jQuery Mobile:

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css" />
<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>

Tip

You can use the preceding code to link to your self-hosted libraries or code snippets by changing the src address.