使用jQuery创建调查 - 任何示例? [英] Creating a Survey using jQuery - Any examples?

查看:106
本文介绍了使用jQuery创建调查 - 任何示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个使用jQuery和HTML的非常基本的调查/向导示例。我希望它连接到一个文本文件或XML文件,并独立于SQL,PHP,ASP.NET或JavaScript以外的任何其他脚本语言。



TIA



更新:我正在寻找一种能够一次提出单个问题的解决方案。然后,基于选择的多选选项,我想显示一个结果,然后允许用户继续下一个问题。就像我之前说的,更像是一个类似向导的调查解决方案。



更新2:我也不想存储任何结果。让我以不同的方式解释这一点。在提供其他服务的网站的主页上,我们想要显示具有5个多项选择答案的单个问题。用户将有能力选择答案并点击提交。点击提交后,div会根据他们选择的答案刷新结果并询问他们是否希望看到另一个问题。没有数据存储。显示内容是一种有趣的练习。

http://plugins.jquery.com/project/Survey



下面是一个例子: http://flesler.webs.com/jQuery.Survey/



该示例从JSON对象中加载详细信息,在我看来,它比文本文件或XML更适合执行此任务。


I'm looking for a very basic survey/wizard example using jQuery and HTML. I'd like it to connect to a text file or XML file and be independent of SQL, PHP, ASP.NET, or any other scripting language outside of JavaScript.

TIA

UPDATE: I'm looking for a solution that will ask a single question at a time. Then, based on the multiple choice option selected, I want to show a result and then allow the user to continue to the next question. Like I said earlier, more of a wizard-like survey solution.

UPDATE 2: I'm also not looking to store any results. Let me explain this a different way. On the homepage of a website that offers other services, we want to show a single question with 5 multiple choice answers. The user would have the ability to choose an answer and click submit. Upon clicking submit, the div would refresh with the results based on the answer they selected and ask if they'd like to see another question. There's no storing of data. It's more less a fun exercise to show content.

解决方案

http://plugins.jquery.com/project/Survey

Here's an example: http://flesler.webs.com/jQuery.Survey/

The example loads the details from a JSON object, which in my opinion is much better suited for this task than a text file or XML.

这篇关于使用jQuery创建调查 - 任何示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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