Can I submit form information to Google Spreadsheets using jQuery AJAX?

I like being able to use google spreadsheets, but it's hard to integrate visually into my site. So I thought that I recreated their form (simple cut / paste), submit the form via AJAX, the data will go to a spreadsheet, and I could redirect my user to something more beautiful than Google default. Thank you for what you did. You just made the page.

But I have a lot of problems submitting the form. I have js until the URL to which the transmission is sent (and the receiving parameters) exactly matches the format of the Google form (the firebug net tab is very convenient here). In fact, when I copy the failed feed url from firebug and put it in the browser, it does not cause any problems.

You can check it out. http://www.stardustindependent.com/cookies What is the problem? The corresponding JS is in custom.js.

+8
jquery ajax google-spreadsheet google-docs
source share
1 answer

OK, I still don't know what this is about. I saw some flimsy google links that want to prevent cross-domain issues, but that was not helpful.

My solution got http://googlesystem.blogspot.com/2008/05/customize-google-docs-forms.html . This is not ajax, but it gives you control over the layout of the / css form and does not redirect you to this nasty google page.

+9
source share

Source: https://habr.com/ru/post/649814/


All Articles