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 7727097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:22:27+00:00 2026-06-01T05:22:27+00:00

I have a page with a JQM listview as the main content. Then another

  • 0

I have a page with a JQM listview as the main content. Then another page is navigated to that needs to use that same listview as a sidebar. My first thought was to use clone() to properly clone the list onto the other page.

This works really well if the first page (example removed) has already been loaded. However, if the user navigates directly to the second page (example removed), when it clones the list, it hasn’t been initialized by JQM as a listview, so it doesn’t display correctly. I can’t figure out how to get this to initialize/clone correctly.

The site in question is example removed.

If my problem isn’t clear let me know, and I’ll try to clear it up a bit.

  • 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-01T05:22:29+00:00Added an answer on June 1, 2026 at 5:22 am

    The trick with initializing the refreshing was a pain to figure out, but basically what I had to do was try to refresh the list I was cloning, and if this failed (exception thrown), then initialize the clone list. If it succeeded in refreshing, then it had already been initialized and I did not need to initialize the clone.

    try {
        // try to refresh the parent, if it works, we don't need to do anything
        $('#To-Clone').listview('refresh');
    } catch (e) {
        // if refreshing the parent fails, then it wasn't initialized, and we need to initialize the child
        $('#Clone').listview();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JQM page with two data-role=listview . They both share the same
I have page where I load different videos.I use jw player as player if
I have page where I use model which can have different types (depending by
I have page (Default1.aspx) in which I am redirecting to another page (Default2.aspx) using
I have a website that does not have page refreshes when the visitor navigates
I have a single HTML page where I need to have three jqm pages
I have page where RSS icon is present. I want that when user clicks
I have page part like this <div id=inbox> <h1>Headline</h1> <p>First paragraph</p> <table> <tbody> <tr>
I have a jQM application that uses the header as a navigation bar. The
I have page that is receiving a query string and I want it so

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.