Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Opinion Poll on a web site

Posted on 2004-03-22
2
Medium Priority
?
348 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 60 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 90 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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 discusses how to implement server side field validation and display customized error messages to the client.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
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…
Suggested Courses

885 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