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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:15:36+00:00 2026-05-20T11:15:36+00:00

I have uploaded this data to rackspace cloud files: {foo: bar} It lives at

  • 0

I have uploaded this data to rackspace cloud files:

{"foo": "bar"}

It lives at this url: http://c192531.r31.cf1.rackcdn.com/test.json

It is served as Content-Type application/json, and when accessed with a browser you get a promt to download. The file has the expected content.

When I try to access it with jquery 1.4.2 with this snippet

<script>
$(document).ready(function($) {

    url = 'http://c192531.r31.cf1.rackcdn.com/test.json';
    $.getJSON(url, function (data) {
        alert( data );
    });

});
</script>

it alerts null.

What did I do wrong?

  • 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-20T11:15:37+00:00Added an answer on May 20, 2026 at 11:15 am

    Is the page containing this script hosted on the same domain (http://c192531.r31.cf1.rackcdn.com)? If not you are probably hitting the same origin policy restriction which prevents you from sending cross domain AJAX requests.

    A possible workaround would be to use JSONP but you will need to make the remote URL return a JSONP string or if you cannot modify it setup a server side script which would act as a bridge between your domain and the remote domain and then send the AJAX request to this bridge script.

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

Sidebar

Related Questions

I have N files being uploaded to this application. the names of each are
what's the problem there, I have uploaded this video to server, but now its
I have this code to move my uploaded file to a specific directory: if
I have written php program and uploaded on server. I want run this program
I use this code to upload files, and this code have a progressbar. The
I'm desperately trying to solve this one. I have a bunch of files stored
I have a server side code to process uploaded binary files: class UploadHandler(webapp.RequestHandler): def
I have some odd experience with my browser here. this code below already uploaded
I have a problem with one of my websites. http://www.weddingguest-book.com I only found this
I have uploaded a file in java, and I am trying something like this

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.