I\'m building a mobile web app with jQuery Mobile and I have a problem. I am using jQuery to parse an XML file and create list items. It builds the list, then apppends that
I ran into this problem with code looking similar to yours. My solution was to place the refresh into the $.ajax "complete" option.
complete: function() { $('#list-id').listview('refresh'); }