Author Message

Posted: Mon Dec 17, 2012 8:08 pm   Post subject: Quiz js events: onSetQuizScore, onQuizFinished

Hi,

Im unable to catch js quiz events. I can catch regular presentation events just fine, like onCurrentSlideIndexChanged.

This is part of the code:

var loader = new fsplayer.api.PresentationLoader();
loader.onPlayerInit = onPlayerInit;
loader.load(... ["quiz movie here"]

function onPlayerInit(player) {
var pc = player.getPlaybackController();
pc.enableAllEventHandlers();
pc.onQuizFinished = function (quizId) {
alert('onQuizFinished');
};
pc.onSetQuizScore = function (quizId, pointScore, percentScore, totalScore, totalScoreNormalized, passed, quizIsSurvey) {
alert('onSetQuizScore ');
};
}

The alert never happens.

Any ideas?

Thanks,
Leandro.


Profile profile test

Posted: Tue Dec 18, 2012 5:58 pm   Post subject: Re: Quiz js events: onSetQuizScore, onQuizFinished

A quiz object within your presentation doesn't offer any API and doesn't generate events. In other words the Quiz could be described as a "black box" model without an interface. However, it could sent results to an email or to a server.

You can find a definite user manual for the Slide API provided by iSpring Pro:
http://www.ispringsolutions.com/help/to ... index.html

You can use the following workaround: send results to server, generate an event there and forward it to your application.

Plesae note that Flash should be placed in the Internet to allow external interactions (send results, hyperlinks). Please refer to this Adobe webpage:
http://www.macromedia.com/support/docum ... ger04.html


Profile profile test

Posted: Tue Dec 18, 2012 6:20 pm   Post subject: Re: Quiz js events: onSetQuizScore, onQuizFinished

OK, we will change our application to use the configurable redirect provided by the "Finish" button, after the user submits the results.

We are already collecting the results at the server. The problem is: we need to redirect the user to the next content module after he passes the quiz or offer to try the quiz again, if he fails.

Since we don't have a JS event to monitor for, our last resort is redirect the user using the "Finish" button to a server action which in turn will check the results (already at the server) and redirect to the next step or offers to try again.

Thanks,
Leanndro.


Profile profile test

Posted: Wed Dec 19, 2012 2:28 pm   Post subject: Re: Quiz js events: onSetQuizScore, onQuizFinished

I believe, there is a simpler way to do this in Quiz settings. You can redirect a user to an URL depending result:
http://www.ispringsolutions.com/help/to ... tings.html


Profile profile test

Posted: Wed Dec 19, 2012 3:40 pm   Post subject: Re: Quiz js events: onSetQuizScore, onQuizFinished

Hi,

That is exactly what I'm doing. But the redirect isn't automatic, the user must click the Finish button after the review.

But its working as expected.

Thanks,
Leandro.


Profile profile test

Posted: Wed Dec 19, 2012 4:37 pm   Post subject: Re: Quiz js events: onSetQuizScore, onQuizFinished

A user has to click Finish button in order to complete a quiz. No results will be send until the user clicks this button to submit results and proceed to another action (e.g. to another slide or a specific URL).


Profile profile test
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 4 users online :: 1 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: Google [Bot]


cron