I am at a mental road block on this project. What I need to do is get data from a ftp service (from realtime voting count company's ftp) and bring it into the browser. Oh yea, it's an XML file..
In the past I have only worked with HTTP protocol.
My angular service looks like this,
app.factory('DataSource', ['$http',function($http){
return {
get: function(file,callback,transform){
$http.get(
file,
{transformResponse:transform}
).
success(function(data, status) {
console.log("Request succeeded");
callback(data);
}).
error(function(data, status) {
console.log("Request failed " + status);
});
}
};
}]);
This is the error I receive
XMLHttpRequest cannot load http://ift.tt/1t77iBq. Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, chrome-extension-resource.
Is there a concise approach for getting FTP data into the browser (preferably with "near" real-time changes of the xml file)?
No comments:
Post a Comment