title: How to use ajax to load a row of youtube videos, then go onto the next row
body: <p>I know it is a bit vague of a question, but I have a webpage that is just a wall of youtube videos. I have the videos separated into divs called rows and there are about 3, maybe 4 videos per row. In my script I am using a jQuery function to create SWFobjects for each video and I have some simple php creating each row of videos inside a wordpress loop.</p>
  
  <p>My question is; is there a way to load a row, 3 or 4 videos, and after that completes to continue the wordpress loop to the next row and so on. I believe my answer lies with ajax but I have no experience with it. I know jquery has some great tools and methods to use to help with ajax, but I dont know where to start and what I am even looking for.</p>
  
  <p>Literally all that webpage does is loop through this bit of code below, this is reduced by a bit. But it runs this function 3 times then goes to the next row and does it 3 more times until wordpress says there are no more posts in that category. How can i get ajax to do one row at a time and not 'all at once'.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var youtubeID = '&lt;?php echo $urlYoutube; //pass the php var to js var?&gt;';
      var divID = '&lt;?php echo $divName;?&gt;';
      getVideoSML(youtubeID, divID);
  &lt;/script&gt;
  </code></pre>
  
  <p>A nice and generous 'push' in the right direction would be greatly appreciated, if not an answer.</p>