帮助您发布的文章 [英] Help on an article you posted

查看:69
本文介绍了帮助您发布的文章的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨Dejan,



您在2014年6月发表了一篇文章将您的表单数据存储在Google电子表格中。我想知道你是否能够帮我弄清楚如何获取代码,所以我可以创建html和java脚本来创建网页。



我不知道如何获得entry_xxxxxxxxx。是google docs生成的java脚本吗?



请帮忙。



非常感谢你。



最好的问候,

JT

Hi Dejan,

you have posted an article on June of 2014 "Store your form data in Google Spreadsheet". I was wondering if you would be able to help me figure out how to get the codes, so I can create the html and java script to create the webpage.

I don't know how to get the "entry_xxxxxxxxx". is the java script generated by google docs?

please help.

Thank you so much.

best regards,
JT

推荐答案

你好JT,



欢迎来到QA! :D



Dejan自2014年5月以来没有回复评论,所以我怀疑你是否有任何成功直接与他联系。否则,最佳做法是直接通过他的文章



我怀疑他会回复,所以让我试着帮助你:



第1步。通过 Google表单在线创建表单。你有没有这样做过?

第2步。完成后,点击查看实时表格查看实时Google表格的预览。

第3步。使用浏览器的开发工具查看此实时Google表单的DOM。如果您使用的是Chrome,则可以通过右键单击每个文本字段/单选按钮并单击检查元素来执行此操作。

步骤4。在代码中出现时,您将看到每个字段的名称值,例如entry_1402836733。你的表格会有所不同。这就是你为代码获取这些值的方法:-)

第5步。使用他的步骤4和5中的代码创建自己的网页文章。

第6步。更改他提供的JS示例,以便您使用自己表单的条目名称。

< b>第7步。你已经完成了!



基本的想法是欺骗谷歌服务器认为你的谷歌表格已经提交,而实际上是你从自己的代码中提交了一些东西。



如果有帮助请告诉我!
Hi JT,

Welcome to QA! :D

Dejan hasn't replied to comments since May 2014, so I doubt you'll have any success contacting him directly. Otherwise, it's best practice to contact him directly through the comments and suggestions forum at the bottom of his article.

I doubt he'll reply though, so let me try to help you out:

Step 1. Create a form online through Google Forms. Have you done this yet?
Step 2. Once you're done, view a preview of the live Google Form by clicking "View Live Form".
Step 3. Use your browser's dev tools to view the DOM of this live Google Form. If you're using Chrome, you can do this by right-clicking each text-field/radio button and clicking "Inspect Element".
Step 4. In the code that appears, you will see the name values of each field, for example "entry_1402836733". It will be different for your form. This is how you get those values for your code :-)
Step 5. Create your own webpage using the code from Steps 4&5 on his article.
Step 6. Change the example JS he gives so that you are using the entry names of your own form.
Step 7. You're done!

The basic idea is to trick Google's servers into thinking that your Google Form was submitted, when in reality you submitted something from your own code.

Let me know if this helps!


这篇关于帮助您发布的文章的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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