How to use Jqmobi to develop a jump between the panel of the app base

Source: Internet
Author: User
Tags html page

There are many ways to jump on a PC-side web program, but how do you jump between using Jqmobi to develop app pages?

Can you also use the traditional a label?

Analysis of Jqmobi demo, found that all the pages are written in a page, it seems that only in this page to jump?

Using the Panel property data-defer to separate the pages, how do I jump?

For example: A list page list.html, click a bar to jump to the details page. How to achieve it?

<div id= "list" class= "Panel" data-load= "Loadfirstpage" data-defer= "list.html"   data-tab= "Navbar_picture" >   
</div>

List.html Page Content:

<a href= "detail.html" data-persist-ajax= "true" class= "icon home big ' > Product 1</a> <a href=    
  " detail.html "Data-persist-ajax=" true "class= ' icon home big ' > Product 2</a> <a href=" detail.html "data-persist-ajax="  
  True "class= ' icon home big ' > Product 3</a>  
  <a href=" detail.html "data-persist-ajax=" true "class= ' icon Home Big ' > Products 4</a>

The detail.html page displays different product information through AJAX based on different products.

The test found different product information that could not be loaded in the iOS simulator, which seems to be a bad way to go.

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

Is it true that you can only jump between the various panel?

How to achieve the above requirements?

After testing found:

Seems really is only between the panel jump, to achieve the above needs to do the following modifications:

Step one: Add Detailpanel to Index.html

<div id= "list" class= "Panel" data-load= "Loadfirstpage" data-defer= "list.html"   data-tab= "Navbar_picture" >   
</div>  
 <div id= "detail" class= "Panel" data-load= "LoadData" data-defer= "detail.html"   data-tab = "Navbar_picture" >   
</div>

Step two, modify a label in the list.html

<a href= "#detail" class= ' icon home big ' > Product 1</a>    
<a href= "#detail"  class= ' icon home big ' > product 2 </a>  
<a href= "#detail"  class= ' icon home big ' > Product 3</a>  
<a href= "#detail"  class= ' icon home big ' > Product 4</a>

The third step is to update the concrete display content of detail.html page according to the different values of a label in list.html in Detail.html.

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.