jquery mobile listview data only display when touch on the screen in Android (Samsung Galaxy Note)

jquery mobile listview data only display when touch on the screen in Android (Samsung Galaxy Note)

Hi Guys,

I encountered an extreme weird problem on Android device where the data in listview will only display when i touch on the screen. I am using jqm 1.2, phonegap 2.1, eclipse juno 4.2.1, and samsung galaxy note. Below are the code:

  1. <div data-role="page" id="sent_receipt" data-title="Sent Receipt" data-dom-cache="true">

  2. <div data-role="header" class="header" data-position="fixed" data-tap-toggle="false">
  3.             <a id="a_sent_receipt" href="#search_receipt_option" data-icon="arrow-l" class="ui-btn-left" data-iconpos="notext" data-theme="d" data-direction="reverse"></a>
  4. <h2>Sent Receipt</h2>
  5. <a id="refresh" href="#" data-icon="refresh" class="ui-btn-right" data-iconpos="notext" data-theme="d"></a>
  6. </div><!-- /header -->

  7. <div data-role="content" data-iscroll>

  8. <ul data-role="listview" id="ul_no_record">
  9. </ul>
  10. <ul data-role="listview" id="ul_sent_receipt_list_today">
  11. </ul>
  12. <ul data-role="listview" id="ul_sent_receipt_list_yesterday">
  13. </ul>
  14. <ul data-role="listview" id="ul_sent_receipt_list_this_week">
  15. </ul>
  16. <ul data-role="listview" id="ul_sent_receipt_list_last_week">
  17. </ul>
  18. </div><!-- /content -->

  19. <div data-role="footer" data-position="fixed" data-tap-toggle="false">
  20. </div><!-- /footer -->
  21. </div><!-- /page -->



  22. $.ajax({
  23. type: 'POST',
  24. url: myApp.getHost() + myApp.getReceiptsUrl(),
  25. cache: false,
  26. data: {'email':myApp.getStoreValue('email')},
  27. dataType: 'json',
  28. timeout: myApp.getRequestTimeout(),
  29. beforeSend: function(x) {
  30. if (x && x.overrideMimeType) {
  31. x.overrideMimeType('application/json;charset=UTF-8');
  32. }
  33. }, 
  34. success: function(res) {

  35. if(res.end === undefined) {
  36. // some populated data goes here
  37. ul.append('<li id="li_show_more" data-icon="false"></li>').listview('refresh').css('display','block');
  38. } else {
  39. ul.listview('refresh').css('display','block');
  40. }


  41. },
  42. error: function(jqXHR, exception) {

  43. },
  44. complete: function(res) {
  45. }

Appreciate anyone can help here. thanks !

regards,
Mark