Embed quiz to rails application
Submitted by pyrtopyr on Thu, 06/06/2019 - 17:03
Forums:
Hey I managed to embed a quizz in my rails application but I would like to know if it's possible to use an API to pull out the results after the quizz is done. The documentation is quite obscure and I found nothing about it yet.
Thanks for reading !
otacke
Fri, 06/07/2019 - 00:58
Permalink
Hi! Not sure what's obscure
Hi!
Not sure what's obscure about this page: https://h5p.org/documentation/x-api but you may have dig deeper if you are not familiar with xAPI.
Best,
Oliver
pyrtopyr
Fri, 06/07/2019 - 12:14
Permalink
Hey, Thanks for your answer
Hey, Thanks for your answer !
I've downloaded the multichoice repository on https://github.com/h5p. I added the proper css and js in my HTML document but whenever I launch it I get 'TypeError: H5P.Question is undefined' error in my console. Also I've made sure that the script is executed after the iframe that I use to embed my multychoice quizz (I've tryied both before and after) but I still get the error. Do you know what is wrong ?
otacke
Fri, 06/07/2019 - 22:13
Permalink
Hi, pyrtopyr!H5P libraries
Hi, pyrtopyr!
H5P libraries can have dependencies to other libraries, here H5P.Question which provides some common functions for question-like content types.
Have you familiarized yourself with how H5P works? https://h5p.org/documentation/developers/h5p-specification
Also, maybe this is useful for you: https://github.com/tunapanda/h5p-standalone
Best,
Oliver
pyrtopyr
Fri, 06/07/2019 - 12:14
Permalink
Hey, Thanks for your answer
Hey, Thanks for your answer !
I've downloaded the multichoice repository on https://github.com/h5p. I added the proper css and js in my HTML document but whenever I launch it I get 'TypeError: H5P.Question is undefined' error in my console. Also I've made sure that the script is executed after the iframe that I use to embed my multychoice quizz (I've tryied both before and after) but I still get the error. Do you know what is wrong ?