开发者

How do I import .csv file from Google Docs into javascript [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve thi开发者_高级运维s question? Update the question so it focuses on one problem only by editing this post.

Closed 4 years ago.

Improve this question

Another newbie question. I would like to be able to import a .CSV spreadsheet from Google Docs into javascript so that I can parse it, and then extract the bits I want into an array.

I can do the second bit, but what I can't work out is what to write to pull in the .csv using the Google Docs URL so that it's available as a string to process.

And if there's a better way method, please let me know.


Not a javascript expert but if you want to retrieve your spreadsheet in CSV form you can issue an HTTP GET request to the following url:

https://spreadsheets.google.com/spreadsheet/pub?key=[your_doc_key]&output=csv

The key of your spreadsheet is the same you can see in the url when you are editing it using Google docs interface.


Sounds like you need to learn about JSONP and the Google APIs


Try this: jquery-csv 0.7 (Beta)

https://code.google.com/p/jquery-csv/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜