Can I submit form info to Google Spreadsheets with jQuery's AJAX?

I like being able to use google spreadsheets, but it's tricky to integrate into my site visually. So I was thinking that I would recreate their form (an easy cut/paste), submit the form via AJAX, the data would go to the spreadsheet and I could redirect my user to something more pretty than google's default 'thank you for doing whatever you just did' page.

But i'm having a lot of trouble submitting the form. I've got my js to the point where the url that the submission goes to (and the get parameters) match exactly what the google form submits (firebug's net tab was very handy here). In fact when I copy the failed submission url from firebug and put that in the browser it goes through no problem.

You're welcome to check it out. http://www.stardustindependent.com/cookies What's the problem here? The relevant JS is in custom.js.

Answers


Ok, I still don't know what's up with that. I saw some inconclusive reference to google wanting to prevent cross-domain issues, but it wasn't helpful info.

My solution ended up coming from http://googlesystem.blogspot.com/2008/05/customize-google-docs-forms.html. It's not ajax, but it gives you control of the form layout/css and it doesn't redirect you to that nasty looking google page.


Need Your Help

Unsure if my ER Diagram to relational model is correct

sql entity-relationship relational-model

Ok, I'm brand new to SQL etc so apologies if this is totally wrong..

Helping the JVM with stack allocation by using separate objects

java optimization jvm stack

I have a bottleneck method which attempts to add points (as x-y pairs) to a HashSet. The common case is that the set already contains the point in which case nothing happens. Should I use a separ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.