Report any technical problems you discover and discuss solutions.

maths formulae in Media Lesson page not displaying correctly

Plus d'informations
il y a 5 ans 11 mois #6788 par olihaslam
Hi

Maths formulae are not displaying correctly in Media Lesson pages. Seems to be ok in other page types though.

I've made an example LO here to show the problem: xerte.uwe.ac.uk/play.php?template_id=2635

Anyone know what the problem might be?

Many thanks
Oli

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

Plus d'informations
il y a 5 ans 11 mois - il y a 5 ans 11 mois #6789 par JohnSmith
Hi Oli,

It seems like there is a bug in this page. MathJax needs to process any content that has been dynamically added and for some reason it isn't here...

I have a fix though for you. If you locate the file mediaLesson.html at location \modules\xerte\parent_templates\Nottingham\models_html5 of your install and edit it:

Find the line that reads
Code:
function isDuplicate(testArr, time){
at about line 1338 (depending on your version). 2 lines before is a curly bracket }

Add
Code:
x_pageContentsUpdated();
immediately before that curly bracket so that the 3 lines look like this:
Code:
x_pageContentsUpdated(); } function isDuplicate(testArr, time){

Save the file and then clear your browser cache and retest the page. All should be working now... I'll commit that change and it will make it into the next update.

Regards,

John
Dernière édition: il y a 5 ans 11 mois par JohnSmith.

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

Plus d'informations
il y a 5 ans 11 mois #6790 par ronm
Hi John/Oli
Oli - I've made this change on your installation now and verified that it fixes your example but you will need to clear offline files to see it working.

John - are you going to commit that fix to develop? I made that change and tested via develop first so can easily commit if you wish.

HTH
Ron

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 5 ans 11 mois #6791 par olihaslam
Hi John and Ron

Thank you both for such a speedy response and fix. Great support and really appreciated by myself and our lecturers!

Cheers
Oli

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

Plus d'informations
il y a 5 ans 11 mois #6792 par JohnSmith
Glad it worked Oli.

Ron, please feel free to commit if you are happy it works with your tests.

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

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