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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:51:54+00:00 2026-06-02T19:51:54+00:00

With the help of a few other stack users I have come up with

  • 0

With the help of a few other stack users I have come up with this:

http://jsfiddle.net/9ywLq/

I want to use an external json file & come up with something similar to this:

http://jsfiddle.net/RCB9M/

The file I am linking to at the moment is: http://www.lofiz.co.uk/afba/songkickwidget/testjsondata.json but this will ultimately change to a Songkick JSON output.

  • 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-02T19:51:56+00:00Added an answer on June 2, 2026 at 7:51 pm

    You are a victim of the same-origin policy. The browser will by default block JSON that is fetched cross-domain for security reasons. If you need to get data cross-domain, you will either have to implement a server-side proxy, or use JSONP, if the data is provided in that format as well. If the source doesn’t provide data in JSONP, I believe you could utilize YQL to convert it.

    Resource on JSONP: http://www.ibm.com/developerworks/library/wa-aj-jsonp1/

    Update: Your URL would be called like this:

    ​$(function(){
      var url = "https://api.songkick.com/api/3.0/artists/253846/calendar.json?apikey=HlgKnFaq9qYO1h9T&jsoncallback=?";
      $.getJSON(url, function(data){
        // Do what you want to do with the return data within this callback
        console.log(data);        
      });
    });​
    

    Update 2:

    I have updated your JSFiddle to work with getJSON(). I also took the liberty to make a few other changes:

    1. I modified how you defined your array of month-names, to make it more readable.
    2. .getDay() in JavaScript is used to return the day of the week (0 = sunday, 1 = monday and so on), as I believe you want the day of the month, you should use .getDate() instead. See my JSFiddle.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just got help in how to compile this script a few mintues ago
I have been trying out Cassandra and need some help in understanding a few
I have a few other files related to my Rails website I am building
i know there's a few other posts like this, but i've been on this
i have deployed an asp.net mvc site a few days ago and everything is
So I have few ASP.NET apps all running off SQL Server Express 2008 and
I'm very new to PHP; and am doing a few sample projects to help
Help! I'm using the ASP.Net Login control on a Login page, but the Login
help out a noob with a simple web development question?? I want to create
Help. TCHAR* b; TCHAR* c=TEXT(qwerty); I want to allocate memory and copy content 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.