Why does the following throw an error?
$.ajax({
type: "GET",
url: str,
crossDomain: true,
timeout: 5000,
success: function(data) {
console.log(data);
},
error: function(error) {
console.log(error.statusText);
},
});
The value of the variable str
is "http://deepview.info/getTableData.php?uid=5405&exchange=NASDAQ&symbol=MSFT&startDate=1391212800&endDate=1393632000"
What I really need is to save the output to a json file...