title: General link to get all details of each imdb top 250 movie?
body: <p>for a school assignment I chose to load all of the movies from top250 list dynamically with Ajax to a singlepage and from that page everytime I choose a movie from the list, a popover shows up with the details of that movie. What I wanted to know is how to get a general link for all movies to get the details for each movie on that list because I'm stuck with "The Shawshanks Redemption"-link. Here's the code</p>
  
  <pre><code>$(document).ready(function () {
  
  
  
      $.ajax({
          url: "crosscall/crosscall.php",
          data: {
              'url': 'http://www.imdb.com/chart/top?ref_=nv_ch_250_4' //Site van IMDB die de Top 250 toont.
          },
          type: "POST",
          success: function (data) {
              var $data = $(data);
              var titel = $('.titleColumn');
              var nummer = 0;
              var imageURL = 'http://ia.media-imdb.com/images/M/MV5BODU4MjU4NjIwNl5BMl5BanBnXkFtZTgwMDU2MjEyMDE@._V1_SX214_AL_.jpg';
              var imageID = 'image';
              var image = $('.posterColumn td a img').attr('src');
              $(document.body).append('&lt;img id="' + imageID + '"&gt;');
              $.ajax({
                  url: 'hotlink.php?url=' + imageURL,
                  success: function (base64data) {
                      $('#' + imageID).attr('src', 'data:image/png;base64,' + base64data);
                  }
              });
  
              $data.find('.titleColumn').each(function () {
                  var titel2 = $(this).find('a').text();
                  var datum = $(this).find('span[name=rd]').text();
                  var plaats = $(this).find('span[name=ir]').text();
                  if (titel2.length &gt; 10) titel2 = titel2.substring(0, 38);
  
                  if (nummer &lt; 250) {
                      $('.container').append('&lt;a href="#" class="popLink"&gt;&lt;div class="imgurstyle"&gt;&lt;div class="titel"&gt;&lt;h1&gt;' + plaats + ' ' + titel2 + ' ' + datum + ' &lt;/h1&gt;&lt;/div&gt;&lt;img src="' + imageURL + image + '" alt="image"&gt;&lt;/div&gt;&lt;/a&gt;');
                  }
              });
  
  
              //Als men op een film klikt, zal de popover tevoorschijn komen.
              $("a.popLink").click(function (event) {
                  //voorkomt dat het link waarop men zal klikken herlaadt.
                  event.preventDefault();
                  showPopover1();
  
              });
  
              var popoverBG;
              var popover;
  
              //functie popover maken zoals bij de oefeningen die we hadden behandeld tijdens WC.
              function showPopover1() {
                  //maak popoverBG
                  popoverBG = document.createElement('div');
                  popoverBG.className = 'popoverBG';
                  document.body.appendChild(popoverBG);
                  //maak popover
                  popover = document.createElement('div');
                  popover.className = 'popover';
  
  
  
  
                  $.ajax({
                      url: "crosscall/crosscall.php",
                      data: {
                          'url': 'http://www.imdb.com/title/tt0111161/?ref_=chttp_tt_1' //Details van elk filmpagina ophalen.
                      },
                      type: "POST",
                      success: function (data) {
                          //gegevens ophalen in popover steken
                          var $data = $(data);
                          var jaartal = $('.infobar');
                          var nummer = 0;
  
                          $data.find('.infobar').each(function () {
                              var titel = $(this).parent().find('h1 span[itemprop=name]').text();
                              var jaartal2 = $(this).find('.nobr').text();
                              var rating = $(this).find('div .titlePageSprite star-box-giga-star').appendTo('li');
                              console.log($(this).find('.titlePageSprite star-box-giga-star'));
                              var genre = $(this).find('.itemprop').text();
                              var regisseur = $(this).parent().find('div[itemprop="director"] span ').text();
                              var schrijver = $(this).parent().find('div[itemprop="creator"]  span').text();
                              var acteurs = $(this).parent().find('div[itemprop="actors"] span').text();
                              var meerAct = $(this).parent().find('.see-more inline nobr a[itemprop="url"]').text();
                              var plot = $(this).parent().find('p[itemprop="description"]').text();
                              var tijdsduur = $(this).find('time').text();
                              if (nummer &lt; 250) {
                                  popover.innerHTML = '&lt;header&gt;&lt;h2&gt;' + titel + '&lt;/h2&gt;&lt;/header&gt;&lt;ul&gt;&lt;li&gt;&lt;img src="images/shawshank%20redemption.jpg" alt="n1"&gt;&lt;/li&gt;&lt;li&gt;Release:' + jaartal2 + '&lt;/li&gt;&lt;li&gt;User ratings:' + rating + '&lt;/li&gt;&lt;li&gt;Genre: ' + genre + '&lt;/li&gt;&lt;li&gt;Duur: ' + tijdsduur + '&lt;/li&gt;&lt;li&gt;Regisseur: ' + regisseur + '&lt;/li&gt;&lt;li&gt;Schrijvers:' + schrijver + '&lt;/li&gt;&lt;li&gt;Acteurs: ' + acteurs + ' &lt;a href="#" target="_blank"&gt;' + meerAct + '&lt;/a&gt;&lt;/li&gt;&lt;li&gt;' + plot + '&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Meer info klik &lt;a href="http://www.imdb.com/title/tt0111161/?ref_=chttp_tt_1" target="_blank"&gt;Hier&lt;/a&gt;&lt;p&gt;&lt;a href="#" onclick="removePopover()"&gt;Close&lt;/a&gt;&lt;/p&gt;';
  
                              }
  
                          });
                      }
                  });
                    document.body.appendChild(popover);
                              //voeg click toe aan popoverBG
                              popoverBG.onclick = removePopover;
  
                              function removePopover() {
                                  document.body.removeChild(popoverBG);
                                  document.body.removeChild(popover);
                              };
              };
          }
      });
  });
  </code></pre>