Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refreshing jQuery Mobile listviews

 
Rob Dennett
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic