I have an URL, say
abc.com/download?fileid=123&entity_id=456&sid=101
which downloads an excel file when I click the link. Instead of downloading it, I want to read its contents with HTML & javascript in order to process the information automatically.
Is there a way to do that? I am not familiar with web programming therefore I am not sure how to proceed. I have tried the following, but nothing happened.
var excel = new ActiveXObject("Excel.Application");
var excel_file = excel.Workbooks.Open("url here");
var excel_sheet = excel_file.Worksheets("Sheet1");
var data = excel_sheet.Cells(1,2).Value;
alert(data);
edit: my question is different from the linked one as I am also trying to figure out how to get the initial raw data which will be parsed once I get it into a variable (however simple the answer might be, I could not find it anywhere else and this is my first practice with web so I couldn't find a way around).
Can the code above access the file in the URL? I do not know how to test it and writing alert(data) returns no result. How do I know I have some data to work with, before I start parsing?
edit2: following returns something when urlString="www.google.com", but it do not return anything with the URL I have, probably because it is a download link.
$.get(urlString, function(data, status){
alert("Data: " + data + "\nStatus: " + status);});