Solved

Opinion Poll on a web site

Posted on 2004-03-22
2
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

734 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