Hi,
I have one page, called index.cfm where I retrieve all the questions from my database for a little quiz, and put them in an arry.
E.g.:
*********
<CFSET question=ArrayNew(1)>
<CFSET question[1]="First question">
<CFSET question[2]="Second question">
I do the same with my answers, and them I display them in my index.cfm file.
Now, once a user has given an answer on question one and needs to jump to question two, I do not want to switch to a 'new' page. E.g. index.cfm?question=2, because then the user needs to access the server, which is not 'smart'.
Is there a way to display the second question, without having to refresh / call the index.cfm file?
Do I need to do it with javascript or is there a other way of doing it?
Oh yes, I also need to track the answers, if possible ;-)
Tnx!
Bram
I have one page, called index.cfm where I retrieve all the questions from my database for a little quiz, and put them in an arry.
E.g.:
*********
<CFSET question=ArrayNew(1)>
<CFSET question[1]="First question">
<CFSET question[2]="Second question">
I do the same with my answers, and them I display them in my index.cfm file.
Now, once a user has given an answer on question one and needs to jump to question two, I do not want to switch to a 'new' page. E.g. index.cfm?question=2, because then the user needs to access the server, which is not 'smart'.
Is there a way to display the second question, without having to refresh / call the index.cfm file?
Do I need to do it with javascript or is there a other way of doing it?
Oh yes, I also need to track the answers, if possible ;-)
Tnx!
Bram