This API is for reading data only.You can combine it with the Google Spreadsheets Data API, that lets you write data back to the spreadsheet. Please search "Google Spreadsheets Data API" for more details.
Regards, VizGuy On Wed, Jan 14, 2009 at 4:00 PM, Mathieu <[email protected]> wrote: > > Hello everyone, > > I try to save some informations into a Google Spreadsheet using > JavaScript, but is it possible ? > > I have a form in my widget where i get 2 informations "description" > and "pointeur". And i try to save it > into my Google Spreadsheet but i don't succeed. Do you have any idea ? > > Thanks by advance, > > Mat > > Here is what i do : > > function save(response) { > if (response.isError()) { > alert("Error in query") > } > var description = _myform.description.value; > var pointeur = myform.pointeur.value; > > var ticketsData = response.getDataTable(); > var nbRows = ticketsData.getNumberOfRows(); > > var indexNewRow = ticketsData.addRow(); > ticketsData.setValue(nbRows,0,nbRows+1); > ticketsData.setValue(nbRows,1,description); > ticketsData.setValue(nbRows,2,pointeur); > > // something to save ticketsData into the spreadsheet ? > } > > function add () { > > var query = new google.visualization.Query(// My URL of the > spreadsheet //); > query.send(save); > } > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
