fermyth

getJsonObject

Jun 19th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. var hasil = truben.getCategory();
  3. //var hasil = Android.getSubCategory(1);
  4. //var hasil = Android.getNodeDetail(6);
  5. var object = JSON.parse(hasil,function(key, value){
  6.     return value;
  7. });
  8. for(var i=0;i<object.length;i++){
  9.  
  10. document.write(object[i].link);
  11. document.write("<br />");
  12. document.write(object[i].title);
  13. document.write("<br />");
  14. document.write(object[i].nid);
  15. document.write("<br />");
  16. document.write(object[i].price);
  17. document.write("<br />");
  18. document.write(object[i].fileLink);
  19. document.write("<br />");
  20. document.write(object[i].body);
  21.  
  22. }
  23. //document.write(object.length);
  24.  
  25. //document.write(object.nid);
  26.  
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment