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

The Archive Base Latest Questions

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

So I make a call for records with JQuery when the page loads like

  • 0

So I make a call for records with JQuery when the page loads like this:

$.ajax(
        {
            type: "POST",
            url: "<%= Url.Action("GetRecords", "Home") %>",
            data: sessioninfo,
            success: function(data){
                // data == the divs
              }
        });

The data that comes back could be any amount of <div> elements (0 or more).

I have a <div id="container"> on my page as well. I want to place, right after the AJAX call, 8 of the <div> elements that come back from the call into the container, or as many as there are if less than 8.

After that, every 5 seconds (I can do this by setting an interval in Javascript), I want to show the next one by having the bottom most div slide out of the container, and the next one in the list slide onto the top (ala Foursquare.com). If there’s no more to display, it will make another AJAX call to get more, and if more are available, it will then pop off the bottom, and pop on top in the same fashion.

Here’s my main questions.

How can I do this animation with JQuery? Also, where should I store the <div> elements that don’t initially fit (if more than 8 come back)? I’m assuming this would also be the place to store the ones that come back from the second AJAX call if I need to make a call for more.

EDIT:
The bottom most <div> should only slide out of the container if it won’t totally fit, otherwise, it should just slide down. This would happen if there are less than 8 <div> elements in the container.

Thanks guys!

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

    Is this what you trying to accomplish?

    if it is, just follow the tutorial

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

Sidebar

Related Questions

I am using the $.ajax function in jquery to make a call to an
I would like to make an ajax call to a different server (same domain
I'm working on an application where users have to make a call and type
I'm calling a SSIS package using LoadPackage(...). Is it possible to make this call
I'm trying to make an ajax call to grab session data to insert into
now i am learning intent filters..I got some some example like view contacts,make call.But
I have a script that forces a download and I make a call to
In a WPF UserControl, I have to make to call to a WebService. I
I'm using asp.net membership, and need to make a call to Membership.GetUser() while I
Im using asynchronous threading in my application WITH httpClient. I make a call using

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.