Giampablo
07-28-2009, 04:25 PM
In a test I have a long table with about 100 questions. All questions are grouped in, let say, 10 "categories", so every time an user answers a question he adds a value to the corresponding "category".
I would like to show the user his test results in a new page:
Cat. A 12% (or total points)
Cat. B 18% (or total points)
....
Cat. N 25% (or total points)
A sorted list (ordered from max to min) would be better.
I have ten totals like this
document.getElementById('CatA').value = sum; ... then sum 1, sum 2...
but i am not able to write each sum to a table in a new page.
Please note that I do not have server side technology, php mysql or whatever.
Xml seems to be a possible solution, but it is complicated for me.
Any suggestion?
I would like to show the user his test results in a new page:
Cat. A 12% (or total points)
Cat. B 18% (or total points)
....
Cat. N 25% (or total points)
A sorted list (ordered from max to min) would be better.
I have ten totals like this
document.getElementById('CatA').value = sum; ... then sum 1, sum 2...
but i am not able to write each sum to a table in a new page.
Please note that I do not have server side technology, php mysql or whatever.
Xml seems to be a possible solution, but it is complicated for me.
Any suggestion?