• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

questions on Javascript/html --- Voting

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what do I need to do/think for voting application?
tnx
 
reply
    Bookmark Topic Watch Topic
  • New Topic