Solved

Opinion Poll on a web site

Posted on 2004-03-22
2
332 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

786 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