File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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