Issue with Hotspot Image: Optional Properties Not Working Simultaneously

Plus d'informations
il y a 1 an 6 mois #9385 par IMED
should I integrate this code:

javascript
Copier le code
$('#mep_1 audio').on('ended', function() {
x_navigateToPage(false, {type: 'linkID', ID: 'PG1713784570265'});
});
$('#mep_2 audio').on('ended', function() {
x_navigateToPage(false, {type: 'linkID', ID: 'PG1713789918321'});
});
into the Script Optional Properties of the Connectors > Hotspot Image Connector page?
Also, where exactly should I add the audio in the Hotspot Image Connector > Hotspot source?
Finally, how can I obtain the audio IDs?"

This formulation is clear and covers all your questions.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 6 mois #9386 par ronm
Sorry you'll have to read my instructions in that previous post (which included how to get the pageID's) and then work out and learn how to do it.
But yes the script obviously goes in the script optional property.

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 6 mois #9387 par IMED
Thank you, it’s done!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 6 mois #9388 par IMED
I followed the previous guidance and added this code:

javascript
Copier le code
$('#mep_0 audio').on('ended', function() {
x_navigateToPage(false, {type: 'linkID', ID: 'PG1735833799288'});
});
It worked perfectly: clicking on the hotspot plays the sound and navigates to the next page.

However, when I added a second hotspot with this code:

javascript
Copier le code
$('#mep_1 audio').on('ended', function() {
x_navigateToPage(false, {type: 'linkID', ID: 'PG1735834449672'});
});
the page stopped working entirely. Could you help me identify the issue? Thank you!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 6 mois #9389 par ronm
If the page has stopped working entirely you probably have a syntax error.
Use the browser console to debug that and try carefully adding the code for each hotspot then testing and adding the next and so on.

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
Les utilisateur(s) suivant ont remercié: IMED

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmalimcn
Temps de génération de la page : 0.135 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo