This article describes how to implement the jquery mobile terminal TAB touch screen switch. For more information, see how we can use the touch screen gesture to slide left and right to switch the TAB column when using the mobile terminal, for example, Netease news and other APP topic switching. The TAB we mentioned is generally composed of the navigation bar and
Http://www.wglong.com/main/artical!details?id=4#q92013-04-22/Category: Jquerymobile/Tags: jquerymobile,jqm,jquerymobile tutorial, JQM TutorialThis article will be continuously updated, mainly includes some novice more common problems.Welcome to recommend to me more typical common problems, I will record and organize into articles, convenient for you.Article Guide:
1, page zoom display problem
2, the page jumps after the style lost JS failure
3, the jump when repeated cal
JQuery Mobile:page, dialog, collapsible, Fieldcontain, NavBar, ListView, Checkboxradio, Button, slider, TextInput, Selectmenu, Controlgroup and so on. some rich controls are organized into a part, and the text input type uses textinput, and the check and radio buttons belong to the Checkboxradio part. each part has its own object constructor, which represents how each object on the page works and can acces
JQuery implements simple sliding navigation code (mobile terminal) and jquery sliding
1.1 App navigation
Note: In this example, there are only two options for implementing a navigation Mountain.
1. Suitable for mobile terminals.
2. the slider length is the length of the Opti
JQuery Mobile uses HTML5 CSS3 to layout Web pages with minimal script. Write the code to note that the outermost div needs to be addeddata-role= "Page" , the title needs to add data-role= "header", the content needs to add data-role= "Contents", the bottom need to add data-role= "Footer". Code:----------------------------------------------------------data-role= "page" >data-role= "header"> data-role= "Con
When Ajax or Javascript is used to dynamically add elements on the page, such as adding the option element of the select control and adding the Li element of ul. After they are added, we will find that the styles they display are not the cool styles of jquery mobile, but become ugly element styles. As shown in:
The Code is as follows:
As you can see, jquery
realistic code:
Copy Code code as follows:
The reason is also to write mouseout events, and the previous "jquery implementation of a long press button to trigger events," the same article, to prevent the browser, smear black to avoid the MouseUp to determine the bug.The above looks very perfect, because in the PC each big browser test passes, also perfect compatible IE8, it is beautiful like painting,
But when it came to the phone
using AJAX and when an external Web site is encountered, a general connection operation is performed if you want to disable the operation of jquery Mobile, Then use the Data property: Data-ajax= "false" 5.jquery page to set the page title: Data-title Settings in the page tab, you can also set the prefetch content in the Header tab in a site, a few pages are ofte
action is not related to the click, see the following real code:The reason is to write the Mouseout event, and the previous "JQuery" Long press button (click the Open link) article, to prevent the browser, blacked out to avoid the MouseUp to determine the bug.The above looks very perfect, because in the PC each big browser test pass, also perfectly compatible with IE8, is really beautiful picturesque,But as soon as you get to the phone, it's a big pr
With jquery Mobile for a period of time WebApp development, ready to use their own a small demo to do a modular sharingClick Demo DemoMobile phone demo QR Code:This demo is already the older version number, the user experience fluency really has a very big problem, but after I write this series of WebApp development instances, will solve most problemshere are some points to be written about later:1: Talk ab
switch.
Pageinit the event that is triggered when the page page is initialized.
Pageload is triggered when the page is fully loaded successfully.
pageloadfailed if the page request fails to trigger.
Pageremove is triggered before the window view removes an external page from the DOM.
Pageshow is triggered on the arrival page after the transition animation completes.
Scrollstart is triggered when the user starts scrolling the page.
Scrollstop is triggered when the user stops scroll
again? This time you will need page initialization events, the name of the file you clicked passed.
$ (' #aboutPage '). Live (' Pagebeforecreate ', function (event) {
Alert (' This page is just inserted into the dom! ');
});
$ (' #aboutPage '). Live (' Pagecreate ', function (event) {
Alert (' This page is just enhanced by jQuery mobile! ');
});
Above are two examples from the
/163440/components/js/jsmobilephotoalbum/index.htmlPersonal Description: The demo sees as if it can be adaptive width, quantity, not yet tested5,iscroll-4Website: http://cubiq.org/iscroll-4demo:http://cubiq.org/dropbox/iscroll4/examples/simple/Personal Description: Can achieve left and right, swipe up and down to simulate the mobile phone operation experience, very good results, but at the moment it seems n
JQuery Mobile has a series of effects on how to transition from one page to the next page. The premise is that the browser must support CSS3 3D conversions:Browser support
Internet Explorer 10 supports 3D conversions (earlier versions are not supported)
Opera still does not support 3D conversion
Transition effects can be applied to any link or form submission by using the Data-transition p
This example describes how to create a jquery-mobile form. Share to everyone for your reference, specific as follows:
First, the matters needing attention
1.
2. Each form element must set a unique "id" attribute.
The ID must be unique on the page of the site.
This is because the single page navigation model of JQuery Mo
jquery Mobile Interface Data RefreshJQM inside when we update the data in certain page tags (such as ListView, RadioButtons, checkboxes, select Menus), you must do a refresh operation. Why do I have to do the refresh operation? Because JQM in the rendering of the page, in order to make the style with the client program, hide the original label and then use some new tags and custom style to represent the ori
This article describes the Jquery-mobile event monitoring and usage. Share to everyone for your reference, specific as follows:
Touch event-triggers (knocks and slides) when the user touches the screenScrolling events-triggered when scrolling up and downDirectional events-triggered when the device is rotated vertically or horizontallyPage events-triggers when the page is displayed, hidden, created, loaded,
take a look.
Let's see it clearly. If you don't want to write it, just write so much. The DOCS on the official website is very detailed. Here we will not list it one by one. If you are interested, you can study it.
Articles you may be interested in:
Jquery automatically adds the current date for the date plug-in when loading the page
Preferred framework for mobile device web development: zeptojs Introd
JS phone slideshow code make finger swipe mobile phone side picture Carousel codejquery Mobile side page side navigation menu slide out effect codeJquery.touchswipe.js Mobile Web making touch screen slide navigation display codejquery Responsive Slideshow plugin make picture pop-up phone slideshow codejquery mobiscroll
JQuery Mobile has a series of effects on how to transition from one page to the next page. The premise is that the browser must support CSS3 3D conversions:Browser support
Internet Explorer 10 supports 3D conversions (earlier versions are not supported)
Opera still does not support 3D conversion
Transition effects can be applied to any link or form submission by using the Data-transition p
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.