Solved

Opinion Poll on a web site

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now