Solved

Opinion Poll on a web site

Posted on 2004-03-22
2
333 Views
Last Modified: 2012-06-21
how would i go about setting up an opinion poll on my web page using javascript? i have the buttons already set up (radio buttons) but the javascript i tried to use just won't work. i also need to find a way of adding the totals each time and storing them so i can display the most popular choice...
0
Comment
Question by:John55276
2 Comments
 
LVL 63

Assisted Solution

by:Zvonko
Zvonko earned 20 total points
ID: 10649635
you can't do that with JavaScript.
it has to be done on server side with some sort of persistant storage, database or text file.
0
 
LVL 3

Accepted Solution

by:
xp_commander earned 30 total points
ID: 10650458
As you have probably figured out , your problem is with consistency of the whole polling thing. Which you can't use the cumulative results by only using Javascript.

Now depending on where you hosting your application , here are two options for you. One is simple CGI based and other is PHP based. Most of the hosting servers provide PHP access , and you would find tons of help in PHP if you need to customize your application. Or you can use straight from the box.

Here is the link to freely available code to help you for further study , research or developement on implementing a poll site :-

CGI Base Solution :- http://www.cgi-world.com/pollit.html#demo

PHP based solution :- http://www.hotscripts.com/PHP/Scripts_and_Programs/Polls_and_Voting/index.html
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question