go to Search WITHOUT VIEW ANY OTHER PHP GENERATED LISTVIEW GETTING Problematic FIRST SHOT

go to Search WITHOUT VIEW ANY OTHER PHP GENERATED LISTVIEW GETTING Problematic FIRST SHOT

When enter App... live in real Device or in Ripple emulator

if go to Search WITHOUT VIEW ANY OTHER PHP GENERATED LISTVIEW GETTING Problematic FIRST SHOT

when go to another page with Listview all OK as second shot... when re-enter Search list view again AFTER VIEWED another list view Search List view is OK like lat two shots... well???




















  1. success: function(results) {

  2. if ( results[0] ) {
  3. var list = self.config.recent,
  4. items = [];
  5. self.createH2new(rec.data_polis);

  6. var i,
  7. len = results.length,
  8. row;
  9. //alert("len2");
  10. if (len > 0 ) {
  11. for (i = 0; i < len; i += 1) {
  12. row = results[i];
  13. items.push('<li><a href="#display" data-trnote="' + row.id + '">' + row.name + '</a></li>');
  14. }
  15. list.html(items.join('\n'));
  16.                                                         $('a', list).on('click', function(e) {
  17. self.displayEntryInfo($(this).attr('data-trnote'));
  18. });
  19. list.listview('refresh');
  20. $('#entries').show();
  21. } else {
  22. $('#entries').hide();
  23. }




  1. <div data-role="page" id="home" data-add-back-btn="true" data-back-btn-text="Back">
  2. <div data-role="header" style="overflow:hidden;" 
  3. data-position="fixed"
  4. data-id="vs_header">
  5. <h1 id="home1H">Polis</h1>
  6.         <a href="#" data-rel="back" data-icon="arrow-l" data-iconpos="left">Back</a>
  7.         <a href="#home0" data-icon="home" data-iconpos="right">Home</a>  
  8. </div>
  9.     <div role="main" class="ui-content">

  10.         <div id="entries">
  11.           <h2 id="home2H">Most Recent Notes</h2>
  12.                      
  13.           <ul class="recent" data-role="listview" data-inset="true">  
  14.           <li>Loading...(Internet Required)</li>

  15.           </ul>
  16.         </div>
  17.        
  18.     </div>
  19. <div data-role="footer" style="overflow:hidden;" 
  20. data-position="fixed"
  21. data-id="vs_footer">
  22. <div data-role="navbar">
  23. <ul>
  24. <li><a href="#home0" 
  25. data-role="button"
  26. data-icon="home"
  27. >Home</a></li>
  28. <li><a href="mapspolisgen.html"
  29. data-role="button"
  30. data-icon="grid" 
  31.                     rel="external"
  32. >MapsPolis</a></li>

  33. <li class="subListInDiv"><a href="#home-search" 
  34.                     data-polis="0" 
  35. data-role="button"
  36. data-icon="search" 
  37. >Search</a></li>

  38. <li><a href="PowersTravelNotes/index.html"
  39. data-role="button"
  40. data-icon="star" 
  41.                     rel="external"
  42. >TravelNotes</a></li>

  43. </ul>
  44. </div><!-- navbar -->
  45. </div><!-- footer -->
  46. </div>




  47. <div data-role="page" id="home-search" data-add-back-btn="true" data-back-btn-text="Back">
  48. <div data-role="header" style="overflow:hidden;" 
  49. data-position="fixed"
  50. data-id="vs_header">
  51. <h1 id="home1H">Polis</h1>
  52.         <a href="#" data-rel="back" data-icon="arrow-l" data-iconpos="left">Back</a>
  53.         <a href="#home0" data-icon="home" data-iconpos="right">Home</a>  
  54. </div>
  55.     <div role="main" class="ui-content">

  56.         <div id="entries">
  57.           <h2 id="home2H">Most Recent Notes</h2>

  58.           <form class="ui-filterable">
  59.                 <input id="autocomplete-input" data-type="search" placeholder="Search Polis town...">
  60.             </form>
  61.                      
  62.           <ul class="recent" data-role="listview" data-filter="true" data-filter-reveal="true" data-input="#autocomplete-input" data-inset="true">  
  63.           <li>Loading...(Internet Required)</li>

  64.           </ul>
  65.         </div>
  66.        
  67.     </div>
  68. <div data-role="footer" style="overflow:hidden;" 
  69. data-position="fixed"
  70. data-id="vs_footer">
  71. <div data-role="navbar">
  72. <ul>
  73. <li><a href="#home0" 
  74. data-role="button"
  75. data-icon="home"
  76. >Home</a></li>
  77. <li><a href="mapspolisgen.html"
  78. data-role="button"
  79. data-icon="grid" 
  80.                     rel="external"
  81. >MapsPolis</a></li>

  82. <li class="subListInDiv"><a href="#"
  83.                     data-polis="0" 
  84. data-role="button"
  85. data-icon="search" 
  86. >Search</a></li>

  87. <li><a href="PowersTravelNotes/index.html"
  88. data-role="button"
  89. data-icon="star" 
  90.                     rel="external"
  91. >TravelNotes</a></li>
  92. </ul>
  93. </div><!-- navbar -->
  94. </div><!-- footer -->
  95. </div>