Discussion Forums  >  Uncategorized

Replies: 4    Views: 224

cjbarnard
I hate code!
Profile
Posts: 34
Reg: Jan 10, 2011
UK
640
04/27/11 03:54 PM (14 years ago)

quiz 1.5 limit number of questions

When I limit my quiz to show 10 questions from the 22 I currently have, it fails to show ANY image based questions. Why would this be? When I reset the value (deleted the 10 setting) it showed all 22 questions again in random order.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/27/11 04:58 PM (14 years ago)
Don't know, good question. Whether the question has an image or should not affect the number of questions or randomizing of the questions. etc. Are you pulling the questions from a URL or are they included in the app's configuration data? Have you looked at the console for clues? Also, are you saying the quiz doesn't show the image for a question that has one or are you saying if it uses an image it never selects that question from the list of 22? You got a weird one here ;-)
 
cjbarnard
I hate code!
Profile
Posts: 34
Reg: Jan 10, 2011
UK
640
like
04/27/11 05:11 PM (14 years ago)
never selects the image which are built in to the app - but all work fine when no specific number of questions opted for :-( Anyway will come back to it tomorrow now 1:10 am and bed is calling. Cheers Chris (NSBA app)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/28/11 02:38 AM (14 years ago)
OK..I looked at this several times today and can't seem to find anything wrong with the logic. Could it be that we have an issue that's related to something else? 'never selects the image which are built into the app' - I think I know what you mean. But... the images included in your app, or whether they load or not, has nothing to do with the number of questions. Again, I'm trying to figure this out but just don't see how this could happening. a) App reads the questions from your panel, all of them, regardless of how many will be used. b) App randomized the quesitons if you chose randomize in the control panel. This happens in the countdownToStartDone method...everytime the quiz re-starts the random logic happens. c) When each question transitions in, it may or may not have an image. If it does..it uses it. I don't have the images you've used in your project but did setup a quiz like the one you did. I tried to duplicate your setup. It worked as expected? I'm thinking there is something else causing the image problem that is not related to the randomizing, number of question, or list of questions. Maybe tinker a bit more and see if you can find ANOTHER way to make it break...if another symptom can be found, like it won't work when something other than the number of questions is changed we may learn more? at a loss for now.
 
cjbarnard
I hate code!
Profile
Posts: 34
Reg: Jan 10, 2011
UK
640
like
04/28/11 08:34 AM (14 years ago)
Thanks David, I'll get back to it over the weekend. We have a Royal Wedding going off here tomorrow so everything will get pushed to the back burner I think
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.