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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:36:17+00:00 2026-05-26T07:36:17+00:00

Anyone know why my ajax fails? I am getting the data through JSONP from

  • 0

Anyone know why my ajax fails?

I am getting the data through JSONP from here:
JSON Data

You can use this code, and notice how the ‘Alert’ is never executed:

$(document).ready(function() {
    var url =  "http://www.finddata.org/buytimeseriesdata/getEncomChartSeriesData?_=1317741441988&tsId=F000008DDB";
    $.getJSON(url + "&callback=?", null, function(data) {
        alert('hi');
    });
});
  • 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-26T07:36:18+00:00Added an answer on May 26, 2026 at 7:36 am

    I am getting the data through JSONP from here

    No you are not getting any JSONP data. You are getting JSON data which is not the same notion. It seems that the url you have indicated doesn’t support JSONP which is the reason why your code doesn’t work. The response must be wrapped with the callback parameter you are specifying but the server ignores it.

    For example if you want this to work, the following url must return:

    foo({"datas":[...],"unit":"%","records":27})
    

    instead of (which it currently does):

    {"datas":[...],"unit":"%","records":27}
    

    I would recommend you reading the following guide if you want to perform corss domain AJAX requests.

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

Sidebar

Related Questions

Does anyone know if I can pass data from flash (action script) to java
Anyone know of a way using AJAX that I can use tp display some
Anyone know how to pass this via Json. Tried doing something like var data
Hi does anyone know how to stop json data from outputting in the browser
Does anyone know where I can find some example code for implementing ajax tabs
Does anyone know of a way I can code-profile my Windows Sidebar Gadget? I've
I thought I would ask about this here. Does anyone know of any work
Anyone know of a control for asp.net that can achieve this either server or
Does anyone know why I can't access the array keys in the generated json
Does anyone know why the ajax statement here won't accept the '-' symbol. I've

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.