I have this small Ajax
function that is suppose to grab an online CSV
file but it keeps failing with this error:
NS_ERROR_FAILURE:
request.send(); csonv.js (line 101)
The function in question looks like this:
var ajax = function(url) {
request = new(window.ActiveXObject || XMLHttpRequest)("Microsoft.XMLHTTP");
request.open("GET", url, 0);
request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
request.send();
return request.responseText;
I am attempting to use csonv.js to grab a CSV file from the internet and convert it to JSON
. Any help is appreciated. Thanks.