listview double refresh after page transition
in jQuery Mobile
•
9 years ago
I am using PhoneGap 1.0.0 and jquery.mobile-1.0b2.js. I am having trouble figuring out why the page reloads (it flickers on, goes blank and then on again) after updating the listview content.
The follow lines are called in the body onload event of the html page:
- var receiverlist = $('#receiverlist');
- receiverlist.replaceWith('');
- $('#receiverlist').html(hcode);
- $('#receiverlist').listview('refresh');
The content on this page is longer than the height of the device, and I am using a footer navbar.
Can anyone help me figure out why the page reloads twice? I want the page to just be there and stay the first time.
1