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

  • Home
  • SEARCH
  • 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 545239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:44:26+00:00 2026-05-13T10:44:26+00:00

A little (!) bit of background before I can get to the question :

  • 0

A little (!) bit of background before I can get to the question :
I am implementing a web based search solution. Technology used: javascript (jquery), .net, html etc. etc.

All my web service calls are done through javascript (cross domain ws call). I have few sequential web service calls which all have different success callback function.

I am not able to digest – when i call those ws individually in seperate places they are returning me proper results but sequentially sometime they are giving and sometime not.

sample code: this is not giving expected results all the time.

function submitSearchRequest(_queryString, Stores) { 
    if (Stores[1].length>0) {
    //generate 'searchRequestForArtifact' request object
    getSearchResponse("successcallForArtifact", _searchRequestForArtifact); 
    }
    if (Stores[2].length > 0) {
    //generate 'searchRequestForPerson' request object
    getSearchResponse("successcallForPerson", _searchRequestForPerson);
    }
}

function successcallForArtifact(response)
{
    //show the results
}

function successcallForPerson(response)
{
    //show the results
}
}
  • 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-13T10:44:26+00:00Added an answer on May 13, 2026 at 10:44 am

    If you need sequentially you will need to kick off each search only after one has returned. Currently you are making async calls, meaning it gets kicked off then continues with the code. Currently if the second call is simply faster the order will be off. You will either need to make a sync call or simply have the order enforced by calling the second search from the success function for the artifact.

    If you are using JQuery which it seems you are you can set the async parameter to false which will force the order you want but it will slow the overall performance of your page. See this question.

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

Sidebar

Related Questions

Ok, little bit of background here. I have a large scale web application (MVC3)
So i'm a little bit confused as i've never used an enum before. I
I do a little bit of third party javascript work for a company where
I did a little bit of Web Programming here and there but I never
I need to outline a little bit of background info for context. Please bear
I have a jquery code, but I'm a little bit confused on how can
First a little bit of background: I have a REST service in WCF 4
Little bit of background, I'm more experienced with Java, and have some C/C++ experience.
I need to get user location update when application is in background. I used
Since coming from a pure C# background I am having a little bit of

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.