daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Sep 18th, 2011 217 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getphotos(page) {
  2. $.getJSON("photos.json.php", { id: chunk[page], token: "<?php echo $session?>" }, function(json) {
  3. var singleimage;
  4.  
  5.  
  6.         $.each(json, function(key, value) {
  7.          
  8.  
  9.         singleimage = value.fql_result_set;
  10.         if (singleimage[5]) {
  11.                 $.each(singleimage, function(keyz, valuez) {
  12.                         console.log(key);
  13.          
  14.         //       generate <li>'s here to insert them -;
  15.                    
  16.                 });
  17.                   $('#maintable tr:last').after('<tr><td>1</td><td>1</td><td><ul class="media-grid" id="imgs-'+key+'">HERE</ul></td></tr>');
  18.         };
  19.        
  20.         });
  21.  
  22.  });
  23.        
  24.  
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top