我可以提交表单信息,以谷歌小号preadsheets与jQuery的AJAX? [英] Can I submit form info to Google Spreadsheets with jQuery's AJAX?

查看:139
本文介绍了我可以提交表单信息,以谷歌小号preadsheets与jQuery的AJAX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢能够使用谷歌小号preadsheets,但它的棘手融入我的网站视觉。所以我在想,我会重新创建自己的形式(一种简单的剪切/粘贴),通过AJAX提交表单,数据会去到S preadsheet,我可以重定向我的用户比谷歌的东西更pretty的默认的谢谢你做什么,你只是做了页面。

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.

但我有很多的麻烦提交表单。我有我的js的地方,提交转到URL(和GET参数)的比赛正是谷歌的形式提交(Firebug的网络选项卡是非常方便在这里)的地步。事实上,当我复制从萤火失败提交网址,并把在浏览器中它通过没有问题。

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.

欢迎您来一探究竟。 http://www.stardustindependent.com/cookies 有什么问题吗?有关JS是custom.js。

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

推荐答案

好吧,我还是不知道怎么了这一点。我看到一些不确定的参考谷歌希望prevent跨域的问题,但它是没有帮助的信息。

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.

我的解决方案,最终从<一个未来href="http://googlesystem.blogspot.com/2008/05/customize-google-docs-forms.html">http://googlesystem.blogspot.com/2008/05/customize-google-docs-forms.html.这不是阿贾克斯,但它给你的窗体布局/ CSS的控制,并没有您重定向到讨厌的谷歌网页。

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.

这篇关于我可以提交表单信息,以谷歌小号preadsheets与jQuery的AJAX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆