Hi Guys,
We are looking at building a survey.
There are a few courses and each course can have a different amount of Videos/Questions tied to it.
We plan on loading a video on a page, and then after watching the video, the user fills out a few questions, and then submits them. They are then taken to a second video, which they watch, then answers some questions (with its own set of questions), submit, etc.
I know If I build the templates on separate pages I can pass parameters of the answers they chose from video1 onto the video2 page. The problem with this solution is that in the back end, the admins should be able to add new videos themselves and tie new questions and answers to the new video they add. This would mean I would need to manually add new pages in DNN and setup a new Xmod template to pull the correct video and questions through. Since each course will have a changing amount of Videos/Questions, is there any way to make this dynamic?
My question is, would it be possible to use AJAX/JSON to submit the answers from video 1 onto video 2 on the same page? For example, video 2 will be hidden when the page first loads, when the user submits video1, the parameters are passed onto video2 which then hides video1 and shows video2's video and questions? They could then do the same for video3, video4, videoXX, regardless of how many questions are tied to the course in question.
If this is possible, is there a working example somewhere I can use as a reference?
This would allow us to avoid having to manually add a new page and add new a new Xmod template for each new course Video/Questions.
Please let me know if you think AJAX is the answer or whether you can think of any better ways of going about this.
Thanks very much!
Shaun