•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 329,731 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,536 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1878 | Replies: 13
![]() |
•
•
Join Date: Nov 2006
Posts: 11
Reputation:
Rep Power: 2
Solved Threads: 0
Q: write a XHTML document that shows the reasult of the color survey. The document should contain a form with radio buttons that allows users to vote for their favorite color. one of the colors should be selected as a default. Then document should also contain a table showing various colors and the corresponding percentages of votes for each color. (Eeach row should be displayed in the color to which it is referring. ) Use attributes to format width, border and cell spacing for the table.
But I can't use javaScript or PHP. only CSS
help!!!!!
But I can't use javaScript or PHP. only CSS
help!!!!! •
•
•
•
Q: write a XHTML document that shows the reasult of the color survey. The document should contain a form with radio buttons that allows users to vote for their favorite color. one of the colors should be selected as a default. Then document should also contain a table showing various colors and the corresponding percentages of votes for each color. (Eeach row should be displayed in the color to which it is referring. ) Use attributes to format width, border and cell spacing for the table.
But I can't use javaScript or PHP. only CSS![]()
help!!!!!
you could do that with javascript, however whatever the user has voted will be stored until the page is opened. once the page is closed everything vanishes...since javascript is not supposed to write files into hard-drives. However you could use cookies...the data will be stored in it. But in both cases the result will be shown of that particular user who is opening that page i mean depending only upon the number of times only he has voted.
so for such purpose server-side scripts such as PHP, ASP etc.. are recommended which could save data from every users.
but i suppose the question assumes that you need to use javascript
so for such purpose server-side scripts such as PHP, ASP etc.. are recommended which could save data from every users.
but i suppose the question assumes that you need to use javascript
for layout you can use CSS, and for vote function you will need to use php with mySQL or asp with MS Acces (server-side scripts with database)
Last edited by katarey : Nov 26th, 2006 at 5:58 pm.
Freelance Web Designer & Developer
Http//www.Katarey.com
Http//www.Katarey.com
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 899
Reputation:
Rep Power: 4
Solved Threads: 43
SQL for a single vote!
Use a single text file, or a text file for each color.
You could do that in PHP, Perl, ASP, etc. But definately: no way without some script sitting on your server.
Is this like, a school/college/university question? If so, they're certainly raising the bar O_O
Use a single text file, or a text file for each color.
You could do that in PHP, Perl, ASP, etc. But definately: no way without some script sitting on your server.
Is this like, a school/college/university question? If so, they're certainly raising the bar O_O
If it only works in Internet Explorer; it doesn't work.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
- Previous Thread: Need to Scroll to div element
- Next Thread: for validation - text box and drop down menu



Linear Mode