Summary of jumps between the panel using Jqmobi to develop the app base

Source: Internet
Author: User

Use Jqmobi to develop jumps between app,panel. According to the current page of different presentation methods, there are four kinds of jump methods.

1 The current page is pop-up, close the current page 2 The current page is not pop-up, you can use a label 3 use $.ui.goback () 4 arbitrary panel of the jump

1 The current page is pop-up, close the current page

For example, the login page, because it uses the modal= "true", is ejected, and after successful landing, only need to close the pop-up form to return to the previous page.

$.ui.hidemask (); Off mask layer

$.ui.hidemodal (); Close pop-up form

Specific can refer to

Using Jqmobi to develop App basics: Login Page Implementation

2 The current page is not pop-up, you can use a label

For example, the Cancel button can jump to the set panel as needed.

<a href= "#jiekuanshenpi" class= "button" > Cancel </a>

3 using $.ui.goback ()

For example, after modifying a piece of information successfully, jump to all the Information list page. You can use $.ui.goback (), but the manual click Effect is the same.

Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

4 Jump of any panel

You can use trigger, such as

$ ("#jiekuanshenpi"). Trigger ("click");

Jump to label with ID JIEKUANSHENPI

You can also use $.ui.loadcontent ()

Implement the same jump as the top

$.ui.loadcontent ("#jiekuanshenpi", False, False, "pop");

Author: csdn Blog xuexiaodong2009

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.