Method, Event, Layout API. $.mobile.changePage //transition to the "confirm" page with a "pop" transition without tracking it in history $.mobile.changePage(

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

What is jQuery Mobile? How to use it? Doncho Minkov Telerik Corporation Technical Trainer.
The new DHR Learning Management System A new way to register for classes… Click the mouse or press the enter key to advanced to each new slide. To return.
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 CS 380: Web Programming. What is jQuery? jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling,
JQuery A Javascript Library Hard things made eas(ier) Norman White.
CS7026 jQuery Events. What are Events?  jQuery is tailor-made to respond to events in an HTML page.  Events are actions that can be detected by your.
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.
How to Post Blogs in WordPress Note: these steps and screen shots were taken while using a Mac. While Macs are still different from PCs, the steps and.
Eye Candy for Your iPhone Tricks to make your WordPress site look more like a native iPhone app Brian Shim Slides at brianshim.com.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 2- JavaScript in Action Modern JavaScript Design And Develop Copyright © 2012 by Larry.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Definition from Wikipedia.  The Prototype JavaScript Framework  implemented as a single file of JavaScript code  named prototype.js (
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
Forms, Validation Week 7 INFM 603. Announcements Try placing today’s example in htdocs (XAMPP). This will allow you to execute examples that rely on PHP.
Spring /6.831 User Interface Design and Implementation1 Lecture 26: Mobile User Interfaces.
Anatomy of an App HTML, CSS, jQuery, jQuery Mobile CIS 136 Building Mobile Apps 1.
JQuery CS 268. What is jQuery? From their web site:
What is jQuery Mobile? How to use it? Doncho Minkov Telerik Corporation Technical Trainer.
Sage CRM Developers Course
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
JavaScript, jQuery & AJAX. What is JavaScript? An interpreted programming language with object oriented capabilities. Not Java! –Originally called LiveScript,
JavaScript & jQuery the missing manual Chapter 11
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
JQuery Adding behaviour…. Lecture Plan Review of last lesson Adding behaviour –click, mouseover Animation –fade, slideDown Navigation –parent, find, next.
JavaScript Framework for Rich Apps in Every Browser Maura Wilder Joan Wortman
Accessible DOM scripting with ARIA Léonie Watson
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Introduction to JavaScript 41 Introduction to Programming the WWW I CMSC Winter 2004 Lecture 17.
3M Cloud Library and iOS How do I get started?. To download eBooks from both Overdrive and the 3M Cloud Library, set up an Adobe ID at
XP Tutorial 6 New Perspectives on JavaScript, Comprehensive1 Working with Windows and Frames Enhancing a Web Site with Interactive Windows.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Saving Form Data You can save form data in Google Spreadsheets using the following steps. 1.Create a Google Spreadsheet in your documents 2.Use Tools to.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
JavaScript Framework for Rich Apps in Every Browser Maura Wilder Joan Wortman
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming DHTML Example.
SANSUEB SOFTWARE PRESENTS SkyTextMsg – Online Texting for your Business.
Digital Signage Theme with U.Va. Alerts
Intro to jQuery. What is jQuery? A JavaScript library Lightweight (about 31KB for the minified version) Simplifies HTML document traversing (DOM), event.
Project Two Adding Scrolling Messages! Page 2.4 to 2.18 Today’s Agenda Look at scrolling message coding. Create a web page with a text box. Create a web.
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
AJAX in Ruby-on-Rails. Ruby on Rails and AJAX AJAX can be done with just Javascript Easier if you use libraries –Prototype –SAJAX –jQuery Libraries only.
MTA EXAM HTML5 Application Development Fundamentals.
Step 1of 11 Admin Demonstrations Click Here to Start.
Basic iPod Operation. Welcome to iPod Touch Instead of a resistive touch screen that requires a stylus, the iPod touch has a capacitive touch screen*.
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.
DYNAMIC WEB PAGES Dr Mohd Soperi Mohd Zahid Semester /16.
Developing for Chromecast Cast Companion Library & Custom Receiver Application.
4.5. Respond to the touch interface 4.6. Code additional HTML5 APIs 4.7. Access device and operating system resources JavaScript Coding for the Touch Interface,
Cosc 5/4730 Support design library. Support Design library Adds (API 9+) back support to a number of 5.0 lollipop widgets and material design pieces –
COM621: Advanced Interactive Web Development Lecture 6 – JavaScript (cont.)
Chapter 8 Using Document Collaboration, Integration, and Charting Tools Microsoft Word 2013.
JavaScript, Sixth Edition
Tek Raj Chhetri Code for Humans not for machine.
Why Selenide? Andrew Boyd.
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Creating Custom Conversion Themes
JQUERY Online TRAINING AT GOLOGICA
Phonegap Bridge Page Events, Physical Events, Device Events
Building an App with Jquery and Ajax
jQuery form submission
AGILENT TECHNOLOGIES RESTRICTED
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Murach's JavaScript and jQuery (3rd Ed.)
CIS 136 Building Mobile Apps
Presentation transcript:

Method, Event, Layout API

$.mobile.changePage //transition to the "confirm" page with a "pop" transition without tracking it in history $.mobile.changePage( "../alerts/confirm.html", { transition: "pop", reverse: false, changeHash: false });

$.mobile.loadPage //load a "search results" page, using data from a form with an ID of "search" $.mobile.loadPage( "searchresults.php", { type: "post", data: $("form#search").serialize() });

$.mobile.showPageLoadingMsg //use theme swatch "b", a custom message, and no spinner $.mobile.showPageLoadingMsg("b", "This is only a test", true);

$.mobile.hidePageLoadingMsg //hide the page loader $.mobile.hidePageLoadingMsg();

$.mobile.silentScroll //scroll to Y 100px $.mobile.silentScroll(100);

Event  tap  taphold  swip  swipleft  swipright

swipe 이벤트 페이지 전환 $(":jqmData(role='page')").live("swipeleft",function(){ // 현재 페이지의 id 에서 페이지 번호를 알아낸 다음 1 을 더합니다. var nextPage = parseInt($(this).attr("id").split("page")[1])+1; if(nextPage===4) nextPage=1; // 페이지를 전환합니다. $.mobile.changePage("#page"+nextPage,"slide"); }); $(":jqmData(role='page')").live("swiperight",function(){ // 현재 페이지의 id 에서 페이지 번호를 알아낸 다음 1 을 뺍니다. var nextPage = parseInt($(this).attr("id").split("page")[1])-1; if(nextPage===0)nextPage=3; // 페이지를 전환합니다. $.mobile.changePage("#page"+nextPage,{transition:"slide",reverse :true}); })

초기화 이벤트  pagebeforecreate  pagecreate 페이지 보이기 숨기기 이벤트  pagebeforehide  pagebeforeshow  pagehide  pageshow

방향 전환 Event $(window).bind('orientationchange',function(event) { if (event.orientation == "portrait") { // 세로 } else if (event.orientation == "landscape") { // 가로 } });

가상 마우스 Event  vmouseover == touch  vmousedown == touchstart  vmousemove == touchmove  vmouseup == touchend  vclick == touchend  vmousecancel == touchcancel

반응형 Layout Event  css 선택자 (.portrait,.landscape )  방향 전환 이벤트 (orientationchange)

화면크기 중단점 클래스  320px, 480px, 768px, 1024px  중단점 추가 $.mobile.addResolutionBreakpoints(400);

미디어 쿼리  장치의 특정 상세를 파악하는데 유용  $.mobile.media(“-webkit-min-device- pixel-ratio: 2”);

4. jQuery Mobile 설정  When jQuery Mobile starts, it triggers a mobileinit event on the document object.  몇가지 설정 옵션을 바꿔서 모든 페이지의 동작방 식을 변경  $(window).bind(‘mobileinit', function() { //apply overrides here });

ns string, default: ""  커스텀데이터 속성에 적용할 네임스페이스.ui-mobile [data-mynamespace-role=page],.ui-mobile [data-mynamespace-role=dialog],

autoInitializePage boolean, default: true  When the DOM is ready, the framework should automatically call $.mobile.initializePage.  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { initializePage : “false” });

subPageUrlKey string, default: "ui-page"  서브페이지를 참조할 때 URL 에 쓸 문자열  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { subPageUrlKey : “ #page1” });

activePageClass string, default: "ui-page-active"  현재 보이는 페이지에 적용될 CSS 스타일  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { activePageClass : “screen” });

activeBtnClass string, default: "ui-btn-active"  활성화된 상태의 버튼에 적용될 CSS 스타일  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { activePageClass : “button” });

ajaxEnabled boolean, default: true  비동기적 기능인 Ajax 폼처리, Ajax 링크처리, URL 해시관리를 켜거나 끔  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { ajaxEnabled : “false” });

linkBindingEnabled boolean, default: true  비동기적 기능인 Ajax 폼처리, Ajax 링크처리, URL 해시관리를 켜거나 끔  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “false” });

hashListeningEnabled boolean, default: true  해시관리를 켜거나 끔  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “false” });

pushStateEnabled boolean, default: true  Enhancement to use history.replaceState in supported browsers, to convert the hash-based Ajax URL into the full document path.  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “false” });

defaultDialogTransition string, default: 'pop'  Set the default transition for page changes that use Ajax  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “none” });

defaultPageTransition string, default: 'fade'  Set the default transition for page changes that use Ajax  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “slide” });

touchOverflowEnabled boolean, default: false  Enable smoother page transitions and true fixed toolbars in devices that support both the overflow  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “slide” });

minScrollBack string, default: 250  Minimum scroll distance that will be remembered when returning to a page.  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “slide” });

loadingMessage string, default: "loading"  Set the text that appears when a page is loading. If set to false, the message will not appear at all.  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “slide” });

pageLoadErrorMessage string, default: "Error Loading Page"  Set the text that appears when a page fails to load through Ajax.  $(window).bind(‘mobileinit', function() { $.extend( $.mobile, { linkBindingEnabled : “slide” });