Report any technical problems you discover and discuss solutions.

Embed content (HTML+JS) only shown on 2nd viewing

Plus d'informations
il y a 10 ans 3 mois #3620 par Susanne
I've added an embded content page, on which I've put my HTML+JS. For the sake of the example, let's say I've put it on page 3. Now, when I do the following:
- play project
- step to page 2
- click on arrow to go to next page
Now, the counter in the bottom right will still display '2/8', the title of page 3 *is* shown, but the content is not. If I click the next button again it will take me to page 4, and then when I click back to page 3 it *does* show the content of page 3.

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

Plus d'informations
il y a 10 ans 3 mois #3629 par Susanne
Réponse de Susanne sur le sujet Embed content (HTML+JS) only shown on 2nd viewing
I have fixed it.

My Google charts component was loading too slowly (at least, in Xerte, not when I run it stand-alone).

Previously, this would not work, as on the first viewing of the page loading was not yet finished and I would get an 'google is not defined' error:
Code:
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); </script>

This does work:
Code:
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> LoadGoogle(); function LoadGoogle() { if(typeof google != 'undefined') { google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); } else { // Retry later... setTimeout(LoadGoogle, 30); } } </script>

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

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