title: JQuery Fancybox is not working with data from JSON call
body: <pre><code>                $.getJSON("/Home/AjaxBrowse", { page: p ? p : 1 }, function (data)              {    
                      var output = "";
                      jQuery.each(data.users, function (key, value) {
  
                          output += '&lt;li&gt;'
                          + "&lt;div class=\"slidera_img\"&gt;"
                          + "&lt;a href=\"/image/viewImage/" + data.users[key].ImageId + "\" rel=\"example_group\"&gt;"
                          + "&lt;img  src=\"/image/viewimage/" + data.users[key].ImageId + "?imageType=thumb\" width=\"100=\" height=\"100\" /&gt;"
                          +"&lt;/a&gt;"
                          + "&lt;/div&gt;"
  
                          + ' &lt;/li&gt;';
                      });
  
                      $("#namesList")
                      .attr("start", data.pager.FirstItemOnPage) 
                      .html(output);
                      $("#namesPager").html(pagedList.render(data.pager));  
                  }).error(function () {
  
                  });
              }
  </code></pre>
  
  <p>I have this code that I want the fancybox to work with.</p>
  
  <p>and here is the fancybox code:</p>
  
  <pre><code>$(document).ready(function () {
          $("a[rel=example_group]").fancybox({
              'transitionIn': 'none',
              'transitionOut': 'none',
              'titlePosition': 'over',
              'type': 'image',
              'titleFormat': function (title, currentArray, currentIndex, currentOpts) {
                  return '&lt;span id="fancybox-title-over"&gt;' + (title.length ? ' &amp;nbsp; ' + title : '') + '&lt;/span&gt;';
              }
          });
  
      });
  </code></pre>
  
  <p>I get to display the images. but when i click on the images, it goes to the link, it doesnt open fancy box:(</p>
  
  <p>how can i fix this?</p>
  
  <p>when i copy the output raw data to html. fancybox works. but it doesnt work with data from json call. is this related to page load?</p>