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 make a call just like this: value = ./simulated_annealing Which is a C
Whenever we make a call to any action controller whether through a full post
I make call from my app with this code (i use webview because after
I'd like to make a call to a function and send either a string
I have JS : jQuery('.unblock').click(function(){ var num = jQuery('.page.active').text(); var ban_id = jQuery('.unblock').attr('id'); jQuery.post('http://127.0.0.1/auth_system_1/user_activity/delete_user_ban',
I have a ASP.NET web page that needs to make a SQL Server call
I'm using jquery to make ajax calls to a database which displays the returned
I want to make call to authenticate user and get back token in json
Can I make ComboBox from AjaxToolkit make call to server every time new letter
I make a call to the twitter API. 100 posts are retreived + a

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.