game completed - redirection
Submitted by alejandrogago on Wed, 04/10/2019 - 17:07
Forums:
how i can add a redirection, after the user win the game?
where in the js i can add some like window.location.replace("http://url.com");
thanks for the help!
Alejandro
icc
Mon, 04/15/2019 - 09:53
Permalink
This is the code:H5P
This is the code:
You can add it to any .js file on your page.
ErreipP
Fri, 09/25/2020 - 17:01
Permalink
Redirection BUT
Hi, thanks for the tip, but how can i redirect to a page only if game is complete without any error.
By the way, the game is a drag and drop with 8 items to place at the right places.
Thanks
otacke
Fri, 09/25/2020 - 19:34
Permalink
Hi!Have you tried checking
Hi!
Have you tried checking the results of the xAPI statement that were retrieved in the example?
Best,
Oliver
ErreipP
Tue, 12/08/2020 - 15:54
Permalink
Hi sorry for the delay and
Hi sorry for the delay and thanks to the reply !
Can you explain a little bit more how to execute that ?
Thanks in advance
otacke
Tue, 12/08/2020 - 18:14
Permalink
Hi!Sorry, rephrasing my
Hi!
Sorry, rephrasing my question: When you follow Frode's advice, what do you observe when you have a look at the xAPI statement, the result property in particular?
Best,
Oliver
ErreipP
Wed, 12/09/2020 - 17:02
Permalink
Hi, thank you for your help
Hi, thank you for your help.
Do i have to copy/paste the code in the page before seeing something ? or where can i find the xAPI statement ?
I use the WP plugin, i forget to precise this... :)
otacke
Wed, 12/09/2020 - 20:40
Permalink
Hi ErreipP!I am a little
Hi ErreipP!
I am a little confused. Frode's example stated: "You can add it to any .js file on your page." And yes, you then could also paste this to the browser development console and then complete an H5P exercise to see the xAPI statements that will be emitted by many content types. If you then inspect the results property (e.data.statement.result), I am sure you'll find what you're looking for.
Cheers,
Oliver
ErreipP
Fri, 02/26/2021 - 12:49
Permalink
Back to the site and i
Back to the site and i realize i did not thank you.
So, thanks a lot and appologies for the late reply. :)
ErreipP
Tue, 12/08/2020 - 15:55
Permalink
Redirection BUT
Hi, thanks for the tip, but how can i redirect to a page only if game is complete without any error.
By the way, the game is a drag and drop with 8 items to place at the right places.
Thanks