0
komentar
Selasa, 14 Juni 2011
In this tutorial you will be introduced with one of the most popular framework for developing mobile web : jQuery Mobile
What is jQuery Mobile ?
jQuery Mobile is a Touch-Optimized web framework for smartphone and tablets. It based on one of the most popular javascript library : jQuery
Getting Started
jQuery Mobile is very unobstrusive as it doesn’t mandate the inclusion of various Javascript files and also there is no need to use Heavy Javascript Calls to achieve the end results. However, you need to include the Core jQuery Mobile Library and the Minified CSS to start with.
Okay, we are starting with simple example:
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=320; user-scalable=no" /> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
| <title>jQuery Mobile Demo</title> | |
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" /> | |
| <script src="http://code.jquery.com/jquery-1.5.2.min.js"></script> | |
| <script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script> | |
| </head> | |
| <body> | |
| <div data-role="page" id="indexPage"> | |
| <div data-role="header"> | |
| <h1>vWap SMS Template</h1> | |
| </div> | |
| <div data-role="content"> | |
| <ul data-role="listview"> | |
| <li> | |
| <a href="#createNewPostPage">Create New Post</a> | |
| </li> | |
| <li> | |
| <a href="#readBlogPage">Read Blog</a> | |
| </li> | |
| <li> | |
| <a href="#aboutMobileBlogPage">About MobileBlog</a> | |
| </li> | |
| </ul> | |
| </div> | |
| <div data-role="footer"> | |
| <h1>- MobileBlog -</h1> | |
| </div> | |
| </div> | |
| <div data-role="page" id="head"> | |
| </div> | |
| </body> | |
| </html> The result will be like this : |


