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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:43:29+00:00 2026-06-05T12:43:29+00:00

On page load i’m sending one AJAX using jQuery .ajax function. After i got

  • 0

On page load i’m sending one AJAX using jQuery .ajax function.
After i got response from that i want to send another ajax request & it would be recursive.

So after getting previous ajax request’s response i want to send another request.

  • 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-05T12:43:32+00:00Added an answer on June 5, 2026 at 12:43 pm

    Here I try to give you just a sample

    function recursiveAjax(url, method, dataType, ) {
      $.ajax({
         url: url,
         method: method,
         dataType: dataType,
         success: function(response) {  // success function call after a successful response
             if(response) {
                recursiveAjax('script_url', 'POST', 'json');
             }
         }
      })
    }
    

    Initial call:

    recursiveAjax('script_url', 'POST', 'json');
    

    Read more about $.ajax for success() and complete() method.

    You can also use .done() method like following:

    function recursiveAjax() {
      $.ajax({
        url: url,
        method: method,
        dataType: dataType
      }).done(function ( response ) {
        if(response) {
           recursiveAjax(...);
        }
      });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

after page load, the first selectbox will be auto-focus. how to use jquery to
On page load, using jQuery how can I select all check boxes in a
On page load, I'm making two AJAX requests: one to pull the newest video
On page load, I'm loading an html page through jquery ajax. This html page
i search for jquery page load. I always face that people use something like
Is Page.Load the earliest point in the Page.Load life cycle to add Response.AppendHeader?
I want on page load for the class of a li tag to be
I understand that the page load of asp.net (mvc 2.0ish) sites can suffer for
I am reading a book about Javascript and jQuery and using one of the
Here on page load i am trying to store the values from form to

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.