Advertisement
joris

GetJson

Aug 10th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var serviceURL = "http://www.berthojoris.com/services2/";
  2.  
  3. var Data;
  4.  
  5. $('#sispakListPage').bind('pageinit', function(event) {
  6.     getEmployeeList();
  7. });
  8.  
  9. function getEmployeeList() {
  10.     $.getJSON(serviceURL + 'DataRead.php', function(data) {
  11.         SistemPakar = data.items;
  12.         $.each(Data, function(index, antara) {
  13.             $('#sispakList').append(
  14.                     '<li><a href="detailKiriman.html?id=' + antara.id + '">' +
  15.                 '<img src="pics/' + antara.image + '"/>' +
  16.                 '<h4>' + antara.tanggal + '</h4>' +
  17.                                 '<p>' + antara.tempat + '</p>' +
  18.                 '<p>' + antara.jadwal + '</p>');
  19.         });
  20.         $('#sispakList').listview('refresh');
  21.     });
  22.    
  23.    
  24. }
  25.  
  26. function showLoad(){
  27.     $('#load').show('slow').html('Data sedang diproses . . .');
  28. }
  29.  
  30. function notShowLoad(){
  31.     $('#load').hide();
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement