jQuery Mobile: Which event should listview('refresh') go in? <p>I'm developing an application which uses WebSQL DB to store data and then retrieve it. The UI is powered by jQuery Mobile, and when I successfully get back the data from the DB, I put it in a listview.</p> <p>When I do that, I get the data, but with no styling at all. Just plain web browser rendering.</p> <p>To refresh the layout, I looked on jQuery Mobile Docs that I need to use <code>$('#list').listview('refresh');</code></p> <p>Now I tried several implementations of this and always failed. I'm asking, <strong>which event</strong> should the refresh statement go in. On my page load I load the Data and put it in the DOM.</p> <p>Please Help!... Thanks...</p>