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 3794710
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:58:17+00:00 2026-05-19T12:58:17+00:00

I am developing a site that parses RSS feeds and displays them in a

  • 0

I am developing a site that parses RSS feeds and displays them in a series of divs. After all of the feeds load, I would like to run a jquery function that basically takes the height of the tallest div and sets all of the divs equal to that height. You can view the site here: http://vitaminjdesign.com/adrian/

Currently, I using the jquery equal heights plugin outlined below:

function equalHeight(group) {
    var tallest = 0;
    group.each(function() {
        var thisHeight = $(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}

and you can call it with:

$(document).ready(function() {
$(".block").equalHeights(); 
});

This isn’t working properly (it sets the height of all the divs equal to the height of the tallest div BEFORE the rss feed loads), most likely due to the fact that I need to use a live event handler? Anyone know how I can set the heights to be equal after everything is completely done loading?

  • 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-05-19T12:58:17+00:00Added an answer on May 19, 2026 at 12:58 pm

    You need to call equalHeight when the AJAX is complete. You have two options: (a) to do the call after each item is loaded or (b) to do the call once after all the items are loaded. equalHeight doesn’t look resource-heavy, so you may as well do the call each time.

    So just add equalHeight($(".block")); to the success callback of each AJAX call.

    $.ajax({
        url: 'someurl.rss',
        success: function(){
            // your code to insert the relevant content
    
            equalHeight($(".block")); // insert this at the end of each call to the RSS files
        }
    });
    

    Alternatively, and slightly more intensive, but simpler in terms of code, is to use ajaxSuccess to run a function after every AJAX call:

    $(document).ajaxSuccess(function(){
        equalHeight($(".block"));
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a simple RSS aggregator site that basically parses a bunch of
I'm developing a site that sends email notifications to users after certain events/user actions
I'm in the process of developing a site that will allow players of a
I am developing a site and that that is managed by two. one is
I'm developing a Wordpress site that will let (registered) users upload an image and
I'm developing a niche social networking site that is going multilingual. That means our
I am developing a web site that uses a CMS and my actual home
I'm developing a site for the iPhone. Later for android. Now I have some
Editing live html while developing my site is very easy with Firebug or Chrome
Possible Duplicate: Truncate a multibyte String to n chars Hello, I'm developing a site

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.