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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:49:35+00:00 2026-06-08T23:49:35+00:00

Here I am trying to request data from REST API data and present in

  • 0

Here I am trying to request data from REST API data and present in a webpage using JQuery.

I am making 3 different request which approximately takes 200ms, 300 ms, 7000 ms times for the response. Here two call methods are being called out of 3, I don’t understand why 3rd one is not being called. When debug using Firebug tool, response is getting from server.

When the order of below function changes the behavior is also getting changed. any of one or two callback methods are being called.

Please help me in solve this issue.

$.getJSON(
    "http://115.111.168.221:8080/AnalysisWebService/getDataFromSocialMedia?searchString=wellpoint&startDate=2012-08-01&endDate=2012-08-04&method=getAnalysisRange",
    function(json) {

        }

$(function () {
$.getJSON(
"http://115.111.168.221:8080/AnalysisWebService/getDataFromSocialMedia?searchString=wellpoint&source=facebook,twitter&searchFrom=socialmention&method=getTodayAnalysis",        

function(json) {

}
}
);
);

$(function () {
$.getJSON(
"http://115.111.168.221:8080/AnalysisWebService/getDataFromSocialMedia?searchString=wellpoint&source=facebook,twitter&searchFrom=socialmention&method=getCurrentAnalysis",      

function(json) {

}
}
);
);
  • 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-08T23:49:36+00:00Added an answer on June 8, 2026 at 11:49 pm

    Try this:

    var url = 'http://115.111.168.221:8080/AnalysisWebService/getDataFromSocialMedia?searchString=wellpoint';
    
    $.getJSON(url + '&startDate=2012-08-01&endDate=2012-08-04&method=getAnalysisRange', function (json) {
        // do something
    });
    
    $.getJSON(url + '&source=facebook,twitter&searchFrom=socialmention&method=getTodayAnalysis', function (json) {
        // do something
    });
    
    $.getJSON(url + '&source=facebook,twitter&searchFrom=socialmention&method=getCurrentAnalysis', function (json) {
        // do something
    });
    

    You don’t need to wrap them in anything else as the DOM doesn’t have to be ready in order for you to fire off some requests.

    Better yet, do something like this for more readability:

    var url = 'http://115.111.168.221:8080/AnalysisWebService/getDataFromSocialMedia';
    
    $.getJSON(url, {
        searchString: 'wellpoint',
        startDate: '2012-08-01',
        endDate: '2012-08-04',
        method: 'getAnalysisRange'
    }).success(function(json) {
        console.log(json);
    }).error(function() {
        console.log('error!');
    });
    
    $.getJSON(url, {
        searchString: 'wellpoint',
        source: 'facebook,twitter',
        searchFrom: 'socialmention',
        method: 'getTodayAnalysis'
    }).success(function(json) {
        console.log(json);
    }).error(function() {
        console.log('error!');
    });
    
    $.getJSON(url, {
        searchString: 'wellpoint',
        source: 'facebook,twitter',
        searchFrom: 'socialmention',
        method: 'getCurrentAnalysis'
    
    }).success(function(json) {
        console.log(json);
    }).error(function() {
        console.log('error!');
    });
    

    edit: I’ve attached error handlers as well, and removed the ? from the url.

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

Sidebar

Related Questions

I am trying to POST a sample data to a server using REST api
I am trying to request xml data from a e-commerce API in ASP classic
I'm trying to read data from Google Fusion Tables API into Python using the
I'm trying to make an HTTP GET request using the jQuery get() function, but
What i am trying to do here is make post request to Rest webserivce
I am trying to do a JSONP request for data from http://soarforward.com/ClassDocuments , but
I'am trying to display data from the database file which has the value Age
I am trying to add a jquery-ui selectable to data that is returned from
I am trying to use the REST web services API from Google (Analytics) and
I am trying to send multiple data from server to client using TCP. I

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.