Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8618603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:08:51+00:00 2026-06-12T06:08:51+00:00

I am having problems with adding a page to a listview sublist (li).. I’m

  • 0

I am having problems with adding a page to a listview sublist (li)..

I’m doing something like this:

<ul data-role="listview">
      <li><a href="#">Click me</a>
            <ul>
               <li data-role="page">
                     <div data-role="header" data-position="fixed">
              <h1>Page Title</h1>
           </div>

           <div data-role="content">
              <p>Page content goes here.</p> 
           </div>

           <div data-role="footer" data-position="fixed">
               <h4>Page Footer</h4>
           </div>
         </li>
        </ul>
       </li>
         </ul>  

Is there a better way to do this as I have a few problems with it…

    • The fixed header and footer does’nt work on IOS 6 (iphone 3GS)
    • Padding and Margins need setting to 0.

Is this the best way to do this?

Normally a list will contain a sub list with links but I want to sublist to contain the page detail (information page).

Update: Trying this but the link does not link to the page gererated:

$.each(data.id, function(index, value){

output += <li>\
<a href="#mypage">\
<h3 class="h3_title">link title</h3>\
</a>\
</li>\
<div id="mypage" data-role="page">\
<div data-role="header" data-position="fixed">\
<h1>Page Title sub</h1>\
</div>\
<div data-role="content">\
one<br/>\
</div>\
<div data-role="footer" data-position="fixed">\
<h4>Page Footer</h4>\
</div>\
</div>';

...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:08:52+00:00Added an answer on June 12, 2026 at 6:08 am

    You could just add the page as a separate div outside the ul tag and make the li a link to it. For example:

    <div id="your-current-page" data-role="page">
      <ul data-role="listview">
      .
      .
      .
        <li><a href="#your-second-page">Click me</a>
      .
      .
      .
      </ul>
    </div>
    <div id="your-second-page" data-role="page">
      You can put here whatever you'd like
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having problems with this setup what im trying to do is like so. Steps
I'm having problems adding a new table row by clicking the link_to_add function link.
I am having problems with adding values to dates and also getting differences between
I am having problems with adding a protocol handler for LDAP on OSGi environment.
I'm adding the Roles provider to the built in AccountModel but having some problems
I'm using asp.net 4 and C#. I'm having problems adding items to a list
Im having problems with Modernizr. According to the beginner tutorials i have read this
I keep having problems with Winforms data-binding, more specifically, whenever I specify a period-separated
I am having some problems. Basically I am adding images which are loaded via
I'm having a problem with adding a json value as a data-attribute in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.