Hello,
Can anybody help me please how to send data from client side (javascript) to csv file?
For example an array or list of data to save in a csv file
Thank you
Hello,
Can anybody help me please how to send data from client side (javascript) to csv file?
For example an array or list of data to save in a csv file
Thank you
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
NelPosted Aug 22, 2014, 12:39 PM
Hi Manesh,
I want to try this, but I don't have a table, I have this:
for (var i = 0; i < origins.length; i++) {
var results = response.rows[i].elements;
addMarker(origins[i], false);
addMarker(destinations[i], true);
outputDiv.innerHTML += origins[i] + ' to ' + destinations[i]
+ ': ' + results[i].distance.text + ' in '
+ results[i].duration.text + '
';
}
how to implement that in my case?
I tried like this
for (var i = 0; i < origins.length; i++) {
var results = response.rows[i].elements;
addMarker(origins[i], false);
addMarker(destinations[i], true);
outputDiv.innerHTML += origins[i] + ' to ' + destinations[i]
+ ': ' + results[i].distance.text + ' in '
+ results[i].duration.text + '
';
xls.Cells(i + 1, i + 1).Value = origins[i] + destinations[i]
+ ': ' + results[i].distance.text +
+ results[i].duration.text
}
but it doesn't work
Thanks
Manesh GolekarPosted Aug 22, 2014, 12:08 AM
Modify this - it should work