I'm trying to successfully get a callback but i keep running into an error that states "XMLHttpRequest cannot load http://api.bitcoincharts.com/v1/markets.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access." this is my javascript.
$(document).ready(function(){
$(".btn").on("click", function(){
var userDate = $("#userDate").val();
var bitcoinApiUrl = "http://api.bitcoincharts.com/v1/markets.json";
var bitcoinApiParams = {
method:"currency"
}
// bitcoinApiUrl += "¤cy" + userDate;
$.ajax({
type: "GET",
AccessControlAllowCredentials: true,
// AccessControlAllowOrigin:
url: bitcoinApiUrl,
success: function(response) {
}
});
});
});