Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"> </script>
  4.  
  5. <script>
  6. $(function() {
  7. $.getJSON('usersList.json', function(data) {
  8. $.each(data, function(i, f) {
  9. var tblRow = "<tr>" + "<td>" + f.uid + "</td>" + "<td>" + f.lat + "</td>" + "<td>" + f.lon + "</tr>"
  10. $(tblRow).appendTo("#userdata tbody");
  11. });
  12. });
  13. });
  14. </script>
  15. </head>
  16.  
  17. <body>
  18. <div class="wrapper">
  19. <table id="userdata">
  20. <thead>
  21. <th>UID</th>
  22. <th>Lat</th>
  23. <th>Lon</th>
  24. </thead>
  25. <tbody>
  26.  
  27. </tbody>
  28. </table>
  29. </div> <!-- wrapper -->
  30.  
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement