[英]Update/Add data to Google Spreadsheet Database
I am trying to update/add data to a google spreadsheet which will act as a database. 我正在尝试将数据更新/添加到将用作数据库的Google电子表格中。 Here is my spreadsheet and my JSfiddle . 这是我的电子表格和我的JSfiddle 。 In the fiddle I can GET information; 在小提琴中,我可以获取信息; however, I am not sure how to POST new information yet. 但是,我不确定如何发布新信息。 It doesn't see as easy as setting data.feed.entry[4]['gsx$content']["$t"];
它data.feed.entry[4]['gsx$content']["$t"];
不像设置data.feed.entry[4]['gsx$content']["$t"];
to the value I want. 达到我想要的值。 How would I do this? 我该怎么做?
Thanks. 谢谢。
the problem is that you have no 'Access-Control-Allow-Origin'
问题是您没有'Access-Control-Allow-Origin'
You need to make a jsonp request so just modify your url adding &callback=?
您需要发出jsonp请求,因此只需添加&callback=?
修改您的url &callback=?
and jQuery does the rest 其余的由jQuery完成
var url = "http://spreadsheets.google.com/feeds/list/1qPcO2SDbnyHcmxtbTb8DmG_f2_grEGIW1MaThSoFzFc/od6/public/values?alt=json&callback=?";
Regards! 问候!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.