Hey everyone,
jQuizMe 2.0: Features a everything you need to make a javascript quiz online.
After a few months of programming I’ve finally finish jQuizMe. It took a some time to get done but it feels rewarding.
Anyhow, jQuizMe 2.0 is at code.google now.
http://code.google.com/p/jquizme/
What REALLY is Data Science? Told by a Data Scientist - By Joma Tech
Writing perfect code is a challenging process. That's where code reviews come in to help…
"The Next Leap: How A.I. will change the 3D industry - Andrew Price - Blender"
"Captain Disillusion: World's Greatest Blenderer - Live at the Blender Conference 2018 - CaptainDisillusion"
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency) - By tutoriaLinux > What's…
View Comments
Larry, your quiz is great and it has been a tremendous help for me. One question: how could I add a custom boilerplate or text at the end of the review that gives meaning to the percentage of how many missed? Client wants a custom statement of how a person did on the quiz itself. I can hack it in I'm sure, but I'm wondering if there's a cleaner way to do it. Thank you!
Could you please provide an example?
I think you could use options.statusUpdate to solve your problem.
This works for me:
options.statusUpdate = function( quizInfo, $currQuiz ){
if( quizInfo.hasQuit ){
if( quizInfo.score = someValue){
$("blockquote.q-statDetails").append ( "someText" );}
else if(quizInfo.score = someOtherValue) {$("blockquote.q-statDetails").append ( "someOtherText" );}
else {$("blockquote.q-statDetails").append ( "someThirdText" );}
...etc...
}
};
Hi larry,
Is there an easy way to disable score at the end of the quiz?
Thank you!
Hide the element that contains the score information when the quiz is quit.
You can do this by using statusUpdate in the options.
var options = {}; options.statusUpdate = function( quizInfo, $quiz ){ // If the quiz has quit, then hide the score element. if( quizInfo.hasQuit ){ $(".q-statTotal", $quiz ).hide(); } } $( "#quiz3" ).jQuizMe( quiz3, options );Hi Larry!
Thank you very much for the tip! Maybe you should update the wiki on this topic, I had the hell of it to understand how statusUpdate works, also I have an issue with animation, I use firefox 4, and the quizme version I use is 2.2, as in the example you use in the zip file of this release, my quiz div doesn't animate, not in firefox, not in IE. I didn't tweak or change any of the animation parameters, it's all by default. Any ideas?
thank you
Yeah, you're right. I need to update the documentation.
I'll see what I can do this weekend.
Hi,
Thanks for a great plugin! I do have a bit of a question:
I was trying to cause the .q-check-btn to trigger upon select of the radio. I tried using the method mentioned below:
$( "#quizArea" ).delegate( ".boxChoice", "click", function(e){
var $checkBtn = $(e.target).parent().parent().parent().parent().find( ".q-check-btn" );
$checkBtn.click();
});
However that doesn't have any effect... Is there another way you can think of to achieve this?
=-S-=
Hi,
Never mind that question... found the issue.
=-s-=
Hello,
Is there anyway to use a select div vs. the radio button? The goal is to have div's be the select options... onclick of one the .q-check-btn is run.
=-s-=
Hi,
Great plug-in. I am trying to position a background image based on "correct' or "incorrect" answers. If a user makes a correct answer the image would position itself. If another correct answer is submitted the background image would move again, etc. The same to be applied to "incorrect" answers. There are actually 2 images to be used in 2 separate locations, using the same logic. Any ideas on how I could achieve this?
-Steve
Can this be done via status update and if so how would that be achieved?
=-s-=
Hi Larry,
Great plugin Thanks! How can we modify the results page to display certain images and/or text based on a users success? In that question how can we modify the layout of that page?
=-Steve
Hi Larry,
Sorry in advance if this has been addressed (couldn't find it anywhere). Is there any way to provide a custom explanation for each question after the user clicks on "Check"? The explanation would be there whether the user responds correctly or not. Thanks in advance!
The options alwaysShowAnsInfo might be what you're looking for.
The default value is false.
All the settings are in the _settings variable in jQuizMe-2.2.js
Here's a link.
Link: http://code.google.com/p/jquizme/source/browse/releases/pre-release%20of%20jQuizMe%202.2%20fixed/jQuizMe-2.2.js
Line: from 207, to 234
So you might want to try this.
var quiz = { // questions and answers go here.... }; var options = {}; options.alwaysShowAnsInfo = true; $( "quiz" ).jQuizMe( quiz, options );Any option for displaying checkbox for selecting multiple answer
No. That needs to be added.
Hello,
Great job you've done!!
I was wondering if there is a way to display a set of question at one time, and not only one?
Thanks for your work
Laurent
That feature will be in the next release. I'm trying to push it so that it's release before Feb 13, 2012.
Hi Larry,
Do you have any news about this new feature?
Thank you
Sorry for the long delay.
Yeah, I missed the deadline for the release but I'm still working on it.
Basically, I decided to rewrite most of the source code to make jQuizMe easier to maintain.
ok. So I decided that the easiest way to implement displaying a set of questions at once is by adding a property called pages.
Something like this.
var quiz = {
pages:[
//normal jQuizMe quiz variable.,
//normal jQuizMe quiz variable.,
...
]
}
Hopefully I can have something out this weekend for beta testing.
Hi Larry,
using your great plugin more and more; really useful :-)
One thing I'm missing too is having several answers for the same problem.
A problem is a situation where you have to analyse and asess several aspects correctly and work out the best solution based on several correct assumptions.
I use it for my poker training :
for instance, in a given hand, you have to estimate your opponents' range of hands, your equity based on your outs, the best action (raise, call fold), optimum bet amount etc.
Also I would need to randomize the problems, but have a static order for the different questions and answers to each problem.
So the picture is :
- a problem as a main question,
- several questions for each aspects of the problem,
- the corresponding set of possible answers for each question
Maybe there's a way to do it already in this version, but I didn't find it and wanted to complement OP request.
Hello Michel,
I'm glad that jQuizMe has helped you out.
A new quiz type would have to be added for that ability.
For now you can provide add an answer as a combination of answer choices.
Question:
What could x equal for xy = 4 if y is 1 or 2?
Answer Choices:
a: x = 2
b: x = 3
c: x = 4
d: a and b
d: b and c
e: a and c
Here's a demo http://jsfiddle.net/3ssKE/
Also you can set the position for a particular answer section by using the null value.
Read "Set the position for Multiple Choice" at
http://jquizme.googlecode.com/hg/releases/release%20jQuizMe%202.1.9/demo/Simple%20guide/jquizme-misc.html
Hello great job Larry. Is there a way for jquizme to save in the database in which, what will be stored are questions that are wrongly answered, something like a table structure of
Question status
What is one plus one wrong answer
What is two plus two wrong answer