title: Append AJAX items to masonry with infinite scroll
body: <p>I've searched around and looked at a bunch of different logic, and think I'm very close but simply can't get my infinite scroll script to append my data to masonry. I have an AJAX file while is pulling the data, and this is the main line inside of the file which pulls the data when scrolling:</p>
  
  <pre><code>        function getData() {
  
              // Post data to ajax.php
              $.post('ajax.php', {
  
                  action        : 'scrollpagination',
                  number        : $settings.nop,
                  offset        : offset,
  
              }, function(data) {
  
                  // Change loading bar content (it may have been altered)
                  $this.find('#spinner').html($initmessage);
  
                  // If there is no data returned, there are no more posts to be shown. Show error
                  if(data == "") { 
                      $this.find('#spinner').hide();  
                  }
                  else {
  
  
  
                      // Offset increases
                      offset = offset+$settings.nop; 
  
                      // Append the data to the content div
                      $this.find('.content').append(data);
  
  
                      // No longer busy!  
                      busy = false;
                  }   
  
              });
  
          }
  </code></pre>
  
  <p>I've tried making edits to the line "$this.find('.content').append(data);" as this is simply taking the data and putting it into the content div which is sitting inside of my masonry function in my main index file.</p>
  
  <p>I've tried things such as</p>
  
  <p>$this.find('.content').append(data).masonry ('reload');</p>
  
  <p>But simply can't get it to work properly and have it append the data.</p>
  
  <p>The rest of the code is working, and scrolling is working properly and pulling data, just won't append to masonry.</p>
  
  <p>Any tips, I feel like I'm missing something very minor.</p>
  
  <p>Thanks in advance!</p>