permaculture playing cards
The moose likes HTML, CSS and JavaScript and the fly likes Refreshing jQuery Mobile listviews Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Refreshing jQuery Mobile listviews" Watch "Refreshing jQuery Mobile listviews" New topic

Refreshing jQuery Mobile listviews

Rob Dennett
Ranch Hand

Joined: Dec 07, 2010
Posts: 81
I have a ul with the data-role="listview" attribute. When this gets updated, I call $('#myUlId').listview('refresh') as specified in the docs but it barks at me that "Uncaught cannot call methods on listview prior to initialization; attempted to call method 'refresh'". Why is listview uninitialized if the element has the aforementioned attribute?

I agree. Here's the link:
subject: Refreshing jQuery Mobile listviews
jQuery in Action, 3rd edition