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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:57:21+00:00 2026-05-17T23:57:21+00:00

I have a situation where I need to make sequential AJAX requests represented by

  • 0

I have a situation where I need to make sequential AJAX requests represented by an ordered list (<ol><li>..) on the page. I use jQuery.

Requirements:

  1. Each request has to wait for the previous one to complete with a successful status.
  2. The success or error message needs to be appended to the corresponding list item.
  3. The process should halt if an error occurs on any item.
  4. Errors may be HTTP errors or an error returned with the JSON formatted response.

What I have working:

  1. Looping over list
  2. Making $.getJSON call to the desired URL for each list item

The ‘Requirements’ items are the pieces I haven’t worked out.


SOLUTION

I ended up using jQuery Message Queuing, but I didn’t find a way to return HTTP errors to the item that spawned the request. I instead display an error in a different place.

$(document).ajaxError(function(event, response, settings, exception){
    $('#Admin').append('<p class="error">' + response.status + ' error requesting page:<br />' + settings.url + '<br />Reload this page to continue.</p>');
});

I would prefer to display HTTP errors with the item if anyone can help me with that.

  • 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-17T23:57:22+00:00Added an answer on May 17, 2026 at 11:57 pm

    jQuery Message Queuing is what you might be looking for. It performs serial (sequential) AJAX requests.

    You can view a demo here.

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

Sidebar

Related Questions

This is the situation: We have some binary files (PDFs, PPTs, ZIPz, etc.) stored
Back story: I have an odd situation. An organization affiliated with my own provides
I have a situation like below in which I have some problem in freeing
I have an odd situation where i want to be able to be able
I have run into a difficult situation. I do not want to do my
I have two select statements and make 'union all' for these two statements. Then,
The situation is following. I have a local (development) PHP server (Win + IIS)
I've found myself twice in this situation: I install a gem on my system
I'd like to make a node.js function that, when calls, reads a file, and
First of all this is all just concept, I have no actual programming done

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.