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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:47:46+00:00 2026-06-01T00:47:46+00:00

I have created a jsfiddle of my problem. Here is a link to the

  • 0

I have created a jsfiddle of my problem. Here is a link to the jsfiddle. I assume this will be easy for someone that has has used jquery mobile a good amount.

I am using jquery mobile in combination with jquery.tmpl. Basically as you can see from the example the I am taking my JSON object and passing it to the .appendTo call. It appears to be correctly using the template to create the <li>‘s

The problem is the the dynamically created <li>‘s do not get the JQM styles like the one I had in there in the mark up.

I have spent a couple hours looking at this and most people say that $("dynamicContentHolder").listview("refresh"); or $("dynamicContentHolder").listview(); or both together will fix the problem. According to JQM documentation (LINK) I should be binding on the pageinit event so this is called every time the page is loaded directly or ajax nav. According to JQM as well (LINK) I should be using .listview('refresh') to updating the styling of the newly added <li>‘s.

It seems like the code should be working, not sure what I am missing.

  • 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-01T00:47:47+00:00Added an answer on June 1, 2026 at 12:47 am

    I had a duh moment, I found the error 2 minutes after I submitted. My jQuery selector was incorrect $("#dynamicContentHolder").listview("refresh");

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

Sidebar

Related Questions

To explain my question I have created this http://jsfiddle.net/Jams/XNVB2/ here I want when div1
I have created some JQuery that will expand a div 'popup' on hover and
I have created a quick jsfiddle here showing it not working. The problem I
I have created a fiddle to test this : http://jsfiddle.net/Ninjanoel/X6ShS/ which works fine :(
I have created a clickable div element that has a few links inside it.
I have created a jQuery ajaxTransport handler (for some testscases I have) that is
To illustrate my problem, I created a jsfiddle page here http://jsfiddle.net/7HZvS/ Why does the
I have had this problem for a while and it has been driving me
I have created a JSFiddle of my case here: http://jsfiddle.net/gGCaX/ (Please take a look,
I have a current problem with jQuery animations... here's what I'm currently doing... I

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.