Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8474139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:32:45+00:00 2026-06-10T17:32:45+00:00

I am coding a single page javascript application that displays images, a la pinspire.

  • 0

I am coding a single page javascript application that displays images, a la pinspire. The libraries that I’m using are jQuery(1.7.2) and the latest version of isotope.

I am trying to implement an infinite scroll in app. When you scroll to the bottom of the page, ajax talks to the server and returns an array of objects in JSON. This JSON is used to build several div with some info about each image, and the image itself.

I am appending each div as it’s created to the isotope enabled container. In the complete section of my ajax call, I am calling isotope(“reLayout”). This works well enough.

My issue is that adding a dozen divs causes the items to ‘flutter’, then I want the items placed at the end. I have tried various permutations of addItems, insert, appended, and not using to isotope(“reLayout”) to no avail.

How do I add items containing images with ajax with out having them overlapping, or fluttering?

Regards,
Nick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:32:47+00:00Added an answer on June 10, 2026 at 5:32 pm

    I don’t know if this helps any, but here’s an extraction of what I did:

    var tmp = $();
    
    // adding a jQuery-wrapped element to the tmp object
    tmp = tmp.add( $( buildTemplate() ) );
    
    $('#container').append(tmp);
    
    tmp.imagesLoaded(function() {
        $('#container').isotope('appended', tmp);
    });
    

    The key for me was waiting for the images to load, otherwise reLayout didn’t do anything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a single jQuery script page that I include in my ScriptManager
I notice that jQuery 1.2.6 is installed with the latest version of Drupal 6.
Here's what I have: A web application that runs in a single HTML page
I have a single page javascript application, and I'm wondering if I can authenticate
I have a sample single-page-application in Backbone that I am messing around with. The
I'm using a single page for two different purposes. By default it has one
ColdFusion sets the CFID and CFTOKEN cookie on every single page, obviously connecting that
I'm coding a website that will be almost fully protected by login (I'm using
I'm coding a jQuery plugin which is basically run on a single <div> .
I'm coding a simple little class with a single method send an email. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.