All of you, I have a big challenge which i'm not able to resolve.
I need some experts with samples on this.
Situation for a webbased quiz system I have a data set with e.g. 5 questions.
The process should be like
1. Load Question 1 from database, there is also a picture and a MP3 sound file
2. I connect the MP3 sound file to a webcontrol I've written to play Mp3 with a flashmovie.
3. Once this mp3 is played (the question is read for people with reading problems) an Event should be raised from the client to the server.
4. The event from 3 should start a Countdown timer (15 seconds ) which shows as a progressbar in the client form WITHOUT posting back
Now there are two options
a. the time elapsed (15 seconds) then I need a server event kicked to show the next question (start at 1)
b. The user entered the answer and presses Next question. We stop the timer , load the next question and start at 1
So I can't connect a client script to an onclick event since no one can click on a button
I found several articles about javascript timers, calling javascript from server side but to be honest I'm no javascript nor clientsidescriptmanager expert.
Who can help me on this with working samples
preferable language vb
platform vs2005
Looking forward to posts from the real gurus
Peter