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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:22:08+00:00 2026-06-17T23:22:08+00:00

I am developing a PhoneGap app with jQueryMobile. My problem is the listview is

  • 0

I am developing a PhoneGap app with jQueryMobile. My problem is the listview is not displaying correctly on the albums page, but is on the home page. I am using the same data-theme for both.

Question: Why is the listview on the second page not displaying correctly (background, font, icon)?

Research:

  1. jQueryMobile documentation on thumbnail listviews (what I’m trying to accomplish)
  2. jQueryMobile documentation on listview api
  3. Google searched and found a tutorial on how to do this (no change)

Code for album page

    <div data-role="page" id="albums" data-url="albums" data-theme="a">
        <div data-role="header">
            <a href="#home" data-role="button" data-corners="true" data-shadow="true">Back</a>
            <h1>Albums</h1>
            <button id="albums-refresh">Refresh</button>
        </div>
        <div data-role="content">
            <ul id="albums-content" data-role="listview" data-inset="true"></ul>
        </div>
    </div>

jQuery function to dynamically populate the listview

Load: function () {
    $("#albums-content").empty();
    $.ajax({type: "GET", url: "https://itunes.apple.com/lookup?id=356541460&entity=album", data: {get_param: "results"}, dataType: "json", success: function (data) {$.each(data, function (index, element) {$.each(this, function (index, element) {if (element.wrapperType === "collection") {$("#albums-content").append("<li><a id='a-" + index + "' href='#album-details'><img src='" + element.artworkUrl100 + "' />" + element.collectionName + "</a>"); $("#a-" + index).bind('click', function (index) {Albums.AlbumID = index; }); }}); }); }});
}

PhoneGap Debug:

enter image description here

Album page Note that the purple background and orange text is not there, though you can see a faint hint of the listview drop shadow below the second album.

enter image description here

  • 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-17T23:22:10+00:00Added an answer on June 17, 2026 at 11:22 pm

    There’s an easy solution for this problem (next time look further into jQM documentation).

    When object is dynamically created in the jQuery Mobile listview its markup also needs to be enhanced like this:

    $('#some-listview').listview('refresh');
    

    Basically every time dynamic content is added to jQuery Mobile page it needs to be manually enhanced. If you want to find more about this topic please take a look at my blog ARTICLE. Or you can find it HERE.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an app for android platoform using PhoneGap and JqueryMobile. The problem is
I'm developing an HTML5 app using PhoneGap + JqueryMobile. My problem is when I
i am developing an android app using phonegap. I have trouble displaying special characters
I am developing a phonegap based android app by using jquery mobile, but pages
I'm developing a iPhone app using PhoneGap. In the app there is a page
I'm creating an app for iPhone using phoneGap, but I'm sure it is not
I'm developing a mobile application using Backbone, jQueryMobile and Phonegap. The app works great
I am developing an Android app using Phonegap and jQueryMobile, working in Eclipse. I
I'm developing an iOS app. Its working properly on simulator. I'm using phonegap and
I am using phonegap and developing html pages for android but I dont know

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.