Web development using JavaScript frameworks has always proved befitting for developers who need to create rich, interactive and outstanding websites and web applications. One such JavaScript framework that has received appreciations from global web developers is jQuery Mobile. As a brand new framework specially designed for building mobile web apps, jQuery Mobile has been built on top of jQuery and is well equipped with a suite of excellent user interface elements that can be efficiently used in the mobile apps. If you're new to jQuery Mobile, then keep on reading this blog as I'll be making you familiar with all interesting aspects related to this awesome JavaScript framework.
A closer look at jQuery Mobile
Serving as an easiest means for building websites and applications, jQuery Mobile is a JavaScript framework that comes loaded with several touch-friendly UI widgets and a simple AJAX powered navigation system that supports animated page transitions. A huge number of developers contribute open source plug-ins for jQuery, and you can find a suitable plug-in for almost any application you might have. The wide range of plug-ins and the simple syntax make jQuery such a great library.
What all does jQuery Mobile do?
Quite unlike a variety of JavaScript frameworks available in the market, jQuery Mobile does a lot more for easing the process of developing user interfaces for mobile web apps. Here's a look at some of the best things that are done by jQuery:
- It renders several new custom events that allow you to detect mobile and touch specific activities including tapping, swiping, tapping and holding, rotating the device and many more.
- With a built-in markup-driven interface configuration, jQuery Mobile makes it convenient for you to create a basic app interface with the help of HTML. Plus, there's no need for you to write even a single piece of JavaScript code.
- It utilizes progressive enhancement for ascertaining that the app interface works brilliantly on any web-enabled device.
- It utilizes a series of themes that make it simple for you to customize the overall look of your application.
Unveiling the jQuery Mobile Page Structure
Well, a majority of pages in your jQuery Mobile web apps will include the following basic template:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Page Title</h1>
</div>
<div data-role="content">
<p>Page content goes here.</p>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
</body>
</html>
The three things that you need to include in your page for using jQuery Mobile are:
- jQuery Mobile CSS file(jquery.mobile-1.0a1.min.css)
- jQuery library(jquery-1.4.3.min.js)
- jQuery Mobile library(jquery.mobile-1.0a1.min.js)
One of the best things about the jQuery Mobile Page structure is that you can easily create multiple pages within a single HTML page, resulting into a smoother user experience.
Ajax navigation adds to the excellence of jQuery Mobile
Ajax works as the right tool for making mobile user experience as smooth as possible. In-line with this fact, jQuery Mobile uses Ajax for allowing the linked pages to get loaded by default. In simple words, instead of the browser following a specific link for opening a new page, jQuery Mobile simply intercepts the link, requests the focused page via Ajax, followed by incorporating the new page content into the focused page's DOM. And that's not all, Ajax also allows jQuery Mobile developers to use URL hashes for ensuring that each page receives its individual and 100% unique bookmark able URL.
jQuery Mobile reflects a greater potential for mobile web app development
It is quite interesting to note that within 36 hours of the release of jQuery Mobile's beta version, an app was being built using the technology. John Resign, the creator of jQuery has displayed his confidence in jQuery Mobile and is keenly looking forward to making the JavaScript framework available for more and more mobile web app developers across the world. If you're an avid supporter of open web, then jQuery Mobile will serve as your best-fit launch. Backed by a rock-solid foundation for creation of impressive mobile apps, jQuery Mobile has opened doors to innovation in mobile web app design and development. With such a remarkable tool at their disposal, developers can deliver apps that look great and operate exceptionally.
Wrapping Up
The flexibility and easily theme able design of jQuery Mobile has made the framework stand out from the crowd of mobile web app development frameworks. So, get going and opt for utilizing the features of jQuery Mobile for delivering high-quality apps that run on varied platforms.
About Emily Heming
Emily Heming is an iPhone app developer and blogger and Currently working at Xicom Technologies. A Mobile apps development services provider which offers the reliable iPhone development services.
"Be the first to express your thoughts"
Post a Comment
Important - Make sure to click the "Subscribe By Email" link below the comment for to be notified of follow up comments and replies.If you use Name/URL don't use keywords as your name. We love to hear from you! Leave us a comment.
To ensure proper display, HTML/XML/JavaScript need to be Encode first using this Encoder Tool Then paste the Encoded code here.