This library is use to save the clinet-side data into google spread sheet.
[Demo Survey (Static Page) ]
https://gc.digitalriver.com/store/rivtw011/static/file.easysurvey_demo
[Data report to Google Doc ]
https://docs.google.com/spreadsheet/ccc?key=0AtB7rOkgel61dG9fb3I0OXNWUm9fRUlzdlpRa0RKeEE#gid=0
-
Create a google account.
-
Create a google form via goole document.
-
Add some customize columns ( all column type should be text box)
-
Then you will got an automatically generated form as below link.
ex: https://docs.google.com/spreadsheet/viewform?formkey=dG9fb3I0OXNWUm9fRUlzdlpRa0RKeEE6MQ -
Record the following information
a. Form Key on the url. sample: dG9fb3I0OXNWUm9fRUlzdlpRa0RKeEE6MQ
b. Columns Names. sample: Score, Feedback -
Then you can use this library to save data into the spreadsheet on your own store.
-
Sample code will like below:
var sheet = new SpreadSheetDB('dG9fb3I0OXNWUm9fRUlzdlpRa0RKeEE6MQ') // initial the object with form key. .start(function() { var row = sheet.newRow(); // create new row. row.Score = '100'; // assign data to the customize column. row.Feedback = 'kukuku'; row.submit(function(result) { if (result.success) { alert('Saved!!'); }} ); // save the data. });
* IE 8, 9: The page should be used in "https" protocol
* IE 7 (and lower): Do not supported