Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

maths formulae in Media Lesson page not displaying correctly 4 years 3 months ago #6788

  • olihaslam
  • olihaslam's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 1
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

Please Inloggen or Create an account to join the conversation.

maths formulae in Media Lesson page not displaying correctly 4 years 3 months ago #6789

  • JohnSmith
  • JohnSmith's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 397
  • Thank you received: 71
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
function isDuplicate(testArr, time){
at about line 1338 (depending on your version). 2 lines before is a curly bracket }

Add
x_pageContentsUpdated();
immediately before that curly bracket so that the 3 lines look like this:
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

Please Inloggen or Create an account to join the conversation.

Last edit: by JohnSmith.

maths formulae in Media Lesson page not displaying correctly 4 years 3 months ago #6790

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 852
  • Thank you received: 261
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/

Please Inloggen or Create an account to join the conversation.

maths formulae in Media Lesson page not displaying correctly 4 years 3 months ago #6791

  • olihaslam
  • olihaslam's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 1
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

Please Inloggen or Create an account to join the conversation.

maths formulae in Media Lesson page not displaying correctly 4 years 3 months ago #6792

  • JohnSmith
  • JohnSmith's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 397
  • Thank you received: 71
Glad it worked Oli.

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

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.056 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search