• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

questions on Javascript/html --- Voting

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a voting program. There are two choices, whenever i vote choice 1, a new page has to be displayed stating that i have voted choice 1, (similarly for choice 2 also), i have to display the no of votes as well as the no of votes in %(percentage) also.
How do we can acheive when we use the following options for voting
1)radio buttons
2)combo boxes
3)images
Could anybody pls respond asap.
Regards,
Venkat.
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to do some server side processing and storage of all past votes. That is the real trick of doing this. Using something like JSP you can have someone vote, with any of the methods you mentioned, and store there vote in a database or text file. Then you can query that database and display how many votes have been casted.
Hope that helps,
Bill
 
Venkat Reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,
Thanks for your response. We r not using JSP instead we r using FreeMarker. U can have a feel of my work at www.bbc.co.uk/totp/index.shtml
Venkat

Originally posted by bill bozeman:
You need to do some server side processing and storage of all past votes. That is the real trick of doing this. Using something like JSP you can have someone vote, with any of the methods you mentioned, and store there vote in a database or text file. Then you can query that database and display how many votes have been casted.
Hope that helps,
Bill



[This message has been edited by Venkat Reddy (edited February 12, 2001).]
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never heard of FreeMarker. Can you tell a little about it?
 
Venkat Reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a open source specification, an alternative to JSP. U can find an article on Freemarker here http://www.javaworld.com/javaworld/jw-01-2001/jw-0119-freemarker.html
It separates html code from JSP. ....
Venkat

Originally posted by Bodie Minster:
I've never heard of FreeMarker. Can you tell a little about it?


 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do I need to do/think for voting application?
tnx
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!