I was almost very happy... I have been trying a boilerplate jQuery ajax function that
always works, and it is failing:
$.ajax ({
type: "POST",
url: "https://www.bitstamp.net/api/balance/",
data: { user:"999", password:"venomous_rat_regeneration" }
}).success( function(msg)
{
alert(msg);
}).error ( function( msg, e )
{
var message;
for (property in msg) {
message += property + ":" + msg[property] + "\n";
}
alert(message);
});
I also tried:
$.post("https://www.bitstamp.net/api/balance", { user: "999", password: "venomous_rat_regeneration" })
.done(function(msg) {
//alert("Data Loaded: " + data);
var message;
for (property in msg) {
message += property + ":" + msg[property] + "\n";
}
alert(message);
});
I expect to get a json object back that I can traverse like a normal javascript object, but I am getting an error object instead.