Issue when switching pages

Issue when switching pages

I am building my first site using jquery mobile, and am having some issues when switching pages. When I go from my first page to my second (which is longer than the screen) it loads to where the footer is on the bottom of the screen and I am able to scroll down past the footer, but not up to the top to see my header and back buttons, etc.

I've tested it in chrome, dolphin browser for android, and on my ipod touch.

Now, I'm only in the wire framing portion of the site, so the code may be a little but messy, but here is the page that is loading weird:

  1. <div data-role="page">

  2. <div data-role="header" data-backbtn="false">
  3. <img src="images/logo.gif" class="logo" />
  4. </div>
  5. <div data-role="list-divider">
  6. <a data-rel="back">Back</a>
  7. Directory
  8. </div>
  9. <div data-role="content">
  10. <ul data-role="listview" data-filter="true">
  11. <li>
  12. <table>
  13. <tr>
  14. <td><div style="display: block; width: 42px; height: 42px; background: #333;"></div></td><td><h1>Venue/Location Name</h1></td>
  15. </tr>
  16. <tr>
  17. <td><h2>$$$</h2></td>
  18. <td>Short description of location. Two or three lines max. Nunc ornate tortor vitae augue pulvinar ut.</td>
  19. </tr>
  20. </table>
  21. </li>

  22. <li>
  23. <table>
  24. <tr>
  25. <td><div style="display: block; width: 42px; height: 42px; background: #333;"></div></td><td><h1>Venue/Location Name</h1></td>
  26. </tr>
  27. <tr>
  28. <td><h2>$$$</h2></td>
  29. <td>Short description of location. Two or three lines max. Nunc ornate tortor vitae augue pulvinar ut.</td>
  30. </tr>
  31. </table>
  32. </li>

  33. <li>
  34. <table>
  35. <tr>
  36. <td><div style="display: block; width: 42px; height: 42px; background: #333;"></div></td><td><h1>Venue/Location Name</h1></td>
  37. </tr>
  38. <tr>
  39. <td><h2>$$$</h2></td>
  40. <td>Short description of location. Two or three lines max. Nunc ornate tortor vitae augue pulvinar ut.</td>
  41. </tr>
  42. </table>
  43. </li>

  44. <li>
  45. <table>
  46. <tr>
  47. <td><div style="display: block; width: 42px; height: 42px; background: #333;"></div></td><td><h1>Venue/Location Name</h1></td>
  48. </tr>
  49. <tr>
  50. <td><h2>$$$</h2></td>
  51. <td>Short description of location. Two or three lines max. Nunc ornate tortor vitae augue pulvinar ut.</td>
  52. </tr>
  53. </table>
  54. </li>

  55. <li>
  56. <table>
  57. <tr>
  58. <td><div style="display: block; width: 42px; height: 42px; background: #333;"></div></td><td><h1>Venue/Location Name</h1></td>
  59. </tr>
  60. <tr>
  61. <td><h2>$$$</h2></td>
  62. <td>Short description of location. Two or three lines max. Nunc ornate tortor vitae augue pulvinar ut.</td>
  63. </tr>
  64. </table>
  65. </li>
  66. </ul>
  67. </div>

  68. <div data-role="footer">
  69. <h4>Page footer.</h4>
  70. </div>

  71. </div>
Like I said, that's not exactly how I planned the info to be listed, but I was doing it for wire framing. If anyone has any idea why it's loading in almost a reverse it would be greatly appreciated.

One last note, it seems that after the page loads, I can refresh the page and get it to load correctly, but that is a pain.