irocker
4 Feb 2011, 8:50 AM
I have a survey whose questions and possible answers are stored in a database, and the number of questions in the survey can vary.
What I'd like to do is load each survey question and the multiple choice responses into a store, and then dynamically create a card for each question with a "Next" button so they can move to the next question/panel.
Well I have my store, and I can create a static number of cards with "Next" and "Back" buttons which call setActiveItem(), but I'm unsure how best to tie them together the way I describe. Can someone point me in the right direction?
What I'd like to do is load each survey question and the multiple choice responses into a store, and then dynamically create a card for each question with a "Next" button so they can move to the next question/panel.
Well I have my store, and I can create a static number of cards with "Next" and "Back" buttons which call setActiveItem(), but I'm unsure how best to tie them together the way I describe. Can someone point me in the right direction?