actually, your question is
here
but anyway. This is a simple AJAX request and there is no need to use jQuery if all you want is the data in an array. You may find it better to build your own array-to-table code, depending on what your needs are.
Here's how you'd do it in plain javascript. The items in the csv file go into an array called "deets" (although you will have to check how exactly your csv file is saved,. and that will dictate how you should split the response text). Here they are just printed out into a div, but you can do what you like with them...
Code:
<body>
<div id="results"></div>
<script type="text/javascript">
var deets=[];
function getData(callback) {
var url="11MTC_BB_09.csv"
var csvFile = window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject('Microsoft.XMLHTTP');
csvFile.onreadystatechange = function() {
if (csvFile.readyState == 4) {
callback(csvFile, csvFile.status);
}
};
csvFile.open("GET", url, true);
csvFile.send(null);
}
getData(function(data) {
deets = data.responseText.split(/\n/);
for (var i = 0; i < deets.length; i++) {
document.getElementById("results").innerHTML+=deets[i]+"<br>"
}
});
</script>
</body>