Report any technical problems you discover and discuss solutions.

maths formulae in Media Lesson page not displaying correctly

  • olihaslam
  • Onderwerp Auteur
  • Offline
  • Junior lid
  • Junior lid
Meer
5 jaren 11 maanden geleden #6788 door 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
5 jaren 11 maanden geleden - 5 jaren 11 maanden geleden #6789 door 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
Laatst bewerkt 5 jaren 11 maanden geleden door JohnSmith.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
5 jaren 11 maanden geleden #6790 door 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/

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • olihaslam
  • Onderwerp Auteur
  • Offline
  • Junior lid
  • Junior lid
Meer
5 jaren 11 maanden geleden #6791 door 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
5 jaren 11 maanden geleden #6792 door JohnSmith
Glad it worked Oli.

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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.140 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo