title: jQuery JSON flickr feed return false not working
body: <p>I am trying to pull images from a users Flickr feed into a thumbnail gallery using JSON and then would like a link on them that creates a lightbox of the actual picture.</p>
  
  <p>At the moment the script is working fine to pull the images and create an anchor, BUT when I click the images, although I have added "return false", I still get taken off my page and to the page URL.</p>
  
  <p>FYI, there is a ul section with id of 'images'</p>
  
  <pre><code>&lt;script&gt;
  
    $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?",
    {
      id: "37493306@N00",
      format: "json"
    },
    function(data){
      $.each(data.items, function(i,item)
      {
  
        var link = item.media.m;
        link = link.replace('_m','');
        $('&lt;li&gt;&lt;a href="' + link + '" class="flickr" rel="prettyPhoto[gallery1]"&gt;&lt;img src="' +     link + '" /&gt;&lt;/a&gt;&lt;/li&gt;').appendTo('#images');
  
        if(i==80) return false;
  
      });
    });
  
    $('a.flickr').click(function(evt) {
      evt.preventDefault();
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>Tell me, is there something quite glaringly obvious about this which is causing it to not work as I thought it should.</p>
  
  <p>Thanks :)</p>
  
  <p>MATT</p>