aspose file tools*
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
Author

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?

Thanks,
Rob
 
 
subject: Refreshing jQuery Mobile listviews