 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.

Slides:



Advertisements
Similar presentations
Coding a Responsive HTML
Advertisements

Chapter 3 – Web Design Tables & Page Layout
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
What is jQuery Mobile? How to use it? Doncho Minkov Telerik Corporation Technical Trainer.
JQuery Mobile. Benefits Required links Remember that we need to add the links to the head, in this order.
The jQuery library. What is jQuery ? A javascript lightweight library Is very easy to use Is powerful Is cross-browser compatible Downloadable from jQuery.com,
JQuery A Javascript Library Hard things made eas(ier) Norman White.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Mobiles provide different features to laptops User expect different facilities – “location aware” But also expects a different sort of interaction. For.
JQUERY Mobile Overview Norman White. What is JQUERY Mobile? jQuery Mobile is a touch-friendly UI framework built on jQuery Core that works across all.
CNIT 132 Intermediate HTML and CSS jQuery Mobile.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
ICS 665 Jesse Abdul. jQuery UI Overview  jQuery UI javascript library Includes all UI component functionality  jQuery UI CSS framework Includes standard.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Anatomy of an App HTML, CSS, jQuery, jQuery Mobile CIS 136 Building Mobile Apps 1.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
Getting Started with Dreamweaver
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
What is jQuery Mobile? How to use it? Doncho Minkov Telerik Corporation Technical Trainer.
Using Styles and Style Sheets for Design
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
Introduction CIS 136 Building Mobile Apps 1. What is a mobile app? 2  Computer program  Designed for small devices  Smartphones  Tablets  Other handhelds.
UB Mobile Past and present Demo of UB Mobile 2.0 Technologies used (and not used) UB Mobile Advisory Council.
Creating Effective School and PTA Websites Sam Farnsworth Utah PTA Technology Specialist
Chapter 2 Developing a Web Page. Chapter 2 Lessons Introduction 1.Create head content and set page properties 2.Create, import, and format text 3.Add.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
14. jQuery Mobile Like jQuery UI, jQuery Mobile consists of a suite of related components that can be used a la carte but work together seamlessly The.
All Web pages are written with some form of HTML (HyperText Markup Language). HTML documents are saved as Text Only files so virtually any computer can.
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
PACS - 09/19/15 1 favicon A ‘Favorite icon’ is a file containing one or more small icons associated with a particular website or web page. Web browsers.
JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
AgileZoom 1.3 interactive portfolios you can share Getting Started (swipe left to advance)
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Mobile web Sebastian Lopienski IT Technical Forum 29 June 2012.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
JQuery Mobile User Interface Design Chapter 1 1. Architecture 2  Hybrid Apps leverage open web standards  Can Test/debug user interface using desktop.
Positioning Objects with CSS and Tables
An Introduction to JQuery Mobile By Trevor Seeney.
Craig Pelkie Copyright © 2015, Craig Pelkie ALL RIGHTS RESERVED Use RPG to Mobilize your IBM i.
JQuery Events, Mobile Events, and Page Events CIS 136 Building Mobile Apps 1.
Mobile Applications With JQuery Mobile and VDF 17.1.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Textbook to be published by Pearson Ed in early Bootstrap.
Header, Footer, and Navigation toolbars CIS 136 Building Mobile Apps 1.
I MPORTANT E LEMENTS IN R ESPONSIVE D ESIGNING OF E COMMERCE W EBSITES By TOPS Technologies
Microsoft Excel Illustrated Introductory Workbooks and Preparing them for the Web Managing.
10 Mobile Application Framework Must Know to Launch New App.
Themes CIS 136 Building Mobile Apps 1. Themes 2  jQuery Mobile has a robust theme framework that supports up to 26 sets of toolbar, content and button.
Multiple Page Apps CIS 136 Building Mobile Apps 1.
Getting Started with Dreamweaver
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
CIS 136 Building Mobile Apps
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Tutorial 4: jQuery Mobile
Browser Support for HTML5
Getting Started with Dreamweaver
Cascading Style Sheets™ (CSS)
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
WEB DESIGN FOR MULTIPLE SCREENS
Buttons, Headers, Footers, and Navigation
Presentation transcript:

 jQuery Mobile An Introduction

What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make responsive web sites that will fit to the screen size of any phone, tablet, or computer  Open-source and free for all kinds of usages

What Should I Already Know?  It helps to have prior knowledge of.. ① HTML ② CSS ③ jQuery

Supported Platforms  The following browsers support the jQuery mobile experience  Apple iOS ( )  Android ( ) all devices  Blackberry 6  Windows Phone 7 Mango  Palm WebOS (1.4)  Opera Mobile (10.1)  Opera Mini (5.02)  Firefox Mobile (beta)

jQuery Mobile vs. jQuery  jQuery was designed to simplify standard scripting across browsers  jQuery focuses on creating elements, performing HTTP requests  jQuery mobile is just a framework built on top of jQuery, it makes use of all the features of jQuery, but used to build mobile-friendly sites

Installing jQuery Mobile  jQuery mobile can be added to any website in two different ways ① Link to jQuery mobile stored on your computer: You must download the mobile library from jQuerymobile.com then add the following code in the block of your page

Installing jQuery mobile  The second way to incorporate jQuery mobile into your web page is much easier ① There is nothing to install on your computer just include the following libraries directly into your page

Attributes of jQuery mobile  There are many different attributes of jQuery mobile that will make designing a responsive mobile web site more simple. Here are a few examples…  Data-roles  Pages  Navigation  Transitions

 Pages

 The page is the main attribute in jQuery mobile, usually divided into three parts: A header, content, and footer  The only mandatory section is the content and each different section is declared using a div with the corresponding data-role. Ex.

Anatomy of a Page

Data-roles  In order to detect roles in an HTML document and manage attributes like pages, toolbars, navigation and theming you must use a data-role.  Data-role is not a new HTML-5 attribute, it is a tool that tells HTML-5 that the attribute the role belongs to needs to be turned into a mobile version of that attribute.

Know Your Roles  jQuery mobile uses standard HTML markup, like the div element.  To define what the framework should do with a div, we must define a role. A role is defined using the attribute data-role; for example  The possible roles that we can use will usually define the type of components or widgets we can render with JQM.

 Navigation

 A jQuery Mobile Document can have multiple pages and we can link between them using page ID’s and an anchor(#)  Having multiple pages in the same HTML document allows pages to load more efficiently than a standard HTTP request. Helps the UI feel more app-like

Linking Pages  To enable animated page transitions, all links that point to an external page will be loaded via Ajax  The framework will parse the link’s href to create an Ajax request and displays the loading spinner  This is all done automagically by jQuery Mobile

Linking Pages Within a Muli- Page Document  If a link in a multi-page document points to an anchor (#example), jQuery Mobile will look for a page div with that id (id = “example”)  If the page is found, it will transition that page into view  You can seamlessly navigate between internal “pages”(#example) and external pages (example.html) using jQuery mobile

Linking Pages Within a Muli- Page Document  Both internal and external pages will look the same to the end user except the external pages will display the ajax spinner while loading  Both also update the page’s URL hash to enable back button support, deep-linking, and bookmarks  To load an external page, we can link to it by using To external page

Transitions  The default transition from one page to the next can be changed or customized using CSS3 animations.  Transitions must be defined using the data-transition attribute on the a element and on of these following values:  Fade  Slide  Slideup  Slidedown  Pop  Flip

Transitions  We can link to an external page using a slide transition like this:  The framework applies the right to left slide transition by default

Dialog Boxes & Pages  To create a dialog window add data-rel =“dialog” to an anchor.  You may add transitions to dialog boxes or pages.  Open dialog

Headers and Footers  Using the data-role = “header” and data-role = “footer” will make your header and footer links into ones that look like iphone or android mobile apps would use  Lets take a look..

Headers

Footers

 Buttons

 A button in jQuery Mobile can be created in the three ways:  Using the element  Using the element with class = “ui-btn”

Buttons  Buttons in JQM are automatically styled, making them look more attractive and similar to a mobile device  It has been recommended that you use the element with class = “ui-btn” to link between pages, and or elements for form submission  Buttons can be grouped in sets both vertically and horizontally using data-type = “vertical(or horizontal)” in the section

Buttons  Lets take a look at some button syntax!!!

Buttons

The Back Button

Toolbars  In jQmobile there are two basic types of toolbars: Header bars and Footer bars  The Header bar serves as the page title, Usually contains a page title and up to two buttons  The Footer bar is usually the last element on a page, usually contains a combination of text and buttons  jQmobile includes a navbar widget that turns an unordered list into a horizontal button bar, which works well as a footer bar

Header Bars  The header is a toolbar at the top of the page that usually contains the page title text and optional buttons positioned to the left and/or right of the title for navigation or actions  The header toolbar is themed with the “a” swatch by default(black) but it is easy to change the theme color Source:

Creating a Header Bar

Footer Bars  The footer bar has the same basic structure as the header except it uses the data-role = “footer” attribute  The primary difference between the header and footer bars are that the footer is designed to be less structured tan the header to allow for more flexibility  The footer toolbar will be themed with the “a” swatch by default(black)

Creating a Footer Bar & Adding Buttons  Any link added to the footer will automatically be turned into a button. Buttons in toolbars are set to inline styling so the button is only as wide as the text and icons it contains

 jQuery Mobile Events Touch, Orientation, Page

Events in jQuery Mobile  jQuery mobile offers several custom events  Touch, mouse, and window events  They can be bound to for use in both handheld and desktop environments  Can be bound to using live() or bind()

Touch Events  Tap: After a quick, complete touch event  Taphold: after a held complete touch event  Swipe: Horizontal drag of 30px or more, within 1 second  Swipeleft: When a swipe event occurred moving in the left  Swiperight: When a swipe event occurred moving in the right

Orientation Change Event  Orientationchange : triggers when a device orientation changes(by turning it vertically or horizontally).  Holds a 2 nd argument, which contains an orientation property of either “portrait” or “landscape”  Also adds classes to the HTML element to allow for leveraging in your CSS.  Binds to the resize event when orientationchange is not natively supported.

Scroll Events  Scrollstart:  Triggers when a scroll begins  Scrollstop:  Triggers when a scroll finishes

 Any Questions?!