It's not a secret anymore!
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 Java Interview Guide this week in the Jobs Discussion 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: 83
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
It's not a secret anymore!