Closed crazycoder82 closed 10 years ago
Yeah, something like this should be possible and probably wouldn't require any modification to the SlickQuiz plugin itself.
I would suggest not initializing the quiz via .slickQuiz()
until your users have made their type selections. That way, as soon as they choose, you can pull those JSON objects in and merge them together. THEN you could initialize the quiz with a single JSON object containing all the questions.
Thank you for quick reply! Is it possible to have two slickquiz objects (quizzes)in one page and switch between them?
You should be able to put multiple quizzes no the page as long as they're initialized on different elements.
There is not functionality built in that supports toggling between multiple datasets though. It would be doable, but you'd need to add that functionality on.
If we initialize quizzes on different elements, how can we add toggling functionality between multiple quizzes? Pls can you give me some directions about it (how to implement it)? thanks
@crazycoder82 That would depend on the type of toggling functionality you're looking for. If you just want to show one quiz and hide the other, that's pretty straightforward toggling. If you want the end scores and rankings to account for the questions the user answered in both quizzes, then it will require a much more complex solution.
how we can switch between instances of plugin? like instance1 = active, instance2 = not active and how to acces them? or if you know can u give me name of some plugin where i can have a look if you know? thank u
Like I said, that is not built in functionality, so you'd have to implement a custom JavaScript solution that handles toggling, resetting, or whatever you need it to do.
I do not know off the top of my head of any quiz plugins that allow this, but I also don't know of many good quiz plugins.
eventually i got it. three instances in one page. thanks
Glad to hear it!
Thanks again for this pretty quiz plugin! and i wanna ask, is it possible to do like this: ex: