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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:28:07+00:00 2026-06-14T20:28:07+00:00

I’m having trouble getting data from a JSON feed in IE. Here’s the test.

  • 0

I’m having trouble getting data from a JSON feed in IE.

Here’s the test. It alerts in FF, Chrome, Safari, but not IE:

function do_something(data){
    alert(data);
}

$(document).ready(function() {
    $.getJSON('https://www.mec.ca/api/v1/stores/1', do_something);
});

​
And here’s the fiddle: http://jsfiddle.net/upksp/

I have tried the following solutions to seemingly-related questions with no luck:

  • Use $.ajax() instead of $.getJSON(): $.getJSON not workin in IE
  • Append &callback=?: $.getJson not working in IE

I can’t help but think it may be a problem with the headers, but don’t know enough about them to diagnose. I’ve successfully used JSONP on the same page with no issues, and I don’t see any conflicts. Help!


Note: For the code I’m working on, the API will be on the same domain(1) as the script that is requesting it. However for testing, they will have different subdomains(2) such as http://www.domain.com vs environment.domain.com. I assume (2) will be problematic, but (1) will work fine?

  • 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-14T20:28:08+00:00Added an answer on June 14, 2026 at 8:28 pm

    Due to browser security reasons, you cannot make requests from one origin to another (ex. jsfiddle.net to http://www.mec.ca). In recent years, browsers have started to circumvent this using CORS (Cross-Origin Resource Sharing). This allows browsers to make requests to another domain, as long as that server (http://www.mec.ca) is configured to accept them. You can check for this in the response header. For your url (https://www.mec.ca/api/v1/stores/1), CORS is enabled. You can see this in the response header on the line that says. Access-Control-Allow-Origin: *. This means requests are allowed from any domain (*)

    HTTP/1.1 200 OK
    Date: Sat, 24 Nov 2012 01:19:23 GMT
    Server: Apache
    Content-Language: en
    Access-Control-Allow-Origin: *
    X-Powered-By: Servlet/2.5 JSP/2.1
    Vary: Accept-Encoding,User-Agent
    Transfer-Encoding: chunked
    Content-Type: application/json
    

    Because IE has lagged behind in implementing the CORS standard, it was not added to IE until IE10. Therefore, your fiddle will not work in previous versions of IE.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want to construct a data frame in an Rcpp function, but when I
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.