Update/Add data to Google Spreadsheet Database

前端 未结 1 952
花落未央
花落未央 2021-01-27 15:24

I am trying to update/add data to a google spreadsheet which will act as a database. Here is my spreadsheet and my JSfiddle. In the fiddle I can GET information; however, I am n

1条回答
  •  孤独总比滥情好
    2021-01-27 15:56

    the problem is that you have no 'Access-Control-Allow-Origin'

    You need to make a jsonp request so just modify your url adding &callback=? and jQuery does the rest

    var url = "http://spreadsheets.google.com/feeds/list/1qPcO2SDbnyHcmxtbTb8DmG_f2_grEGIW1MaThSoFzFc/od6/public/values?alt=json&callback=?";
    

    This is the fiddle

    Regards!

    0 讨论(0)
提交回复
热议问题