Reputation: 708
If cross domain ajax calls are not allowed then how are you supposed to do this? Note: obsoleted link. Question updated with relevant section from original page in question.
From link; (Developer's Guide: Protocol v 2.0 – Google Spreadsheets API):
To add a row to the table, start by creating an <entry>
element containing the relevant data:
<entry>
<gsx:hours>1</gsx:hours>
<gsx:ipm>1</gsx:ipm>
<gsx:items>60</gsx:items>
<gsx:name>Elizabeth Bennet</gsx:name>
</entry>
Then determine the appropriate URL to send the entry to, known as the POST URL. You can find the POST URL in the list feed's <link>
element that has rel="http://schemas.google.com/g/2005#post"
.
Next, do any necessary authentication, and create an Authorization header for a new POST request as described in the authentication sections of this document.
In the body of the POST request, place the Atom <entry>
element you created above, using the application/atom+xml
content type.
Now send the request to the POST URL:
POST http://spreadsheets.google.com/feeds/list/key/worksheetId/private/full
Spreadsheets inserts the new row immediately after the last row that appears in the list-based feed, which is to say immediately before the first entirely blank row.
Upvotes: 4
Views: 952
Reputation: 3110
Cross domain ajax restrictions are only a browser restriction. If you make a webservice call from the server or another application, you won't be restricted. If you need to do an ajax call though, you could proxy the call through your server.
Upvotes: 3