General questions and topics about Xerte Toolkits that don’t fit anywhere else.

nested pages audio

  • mdowless
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #4972 by mdowless
nested pages audio was created by mdowless
I created a LO using Navigators > Slideshow with several nested pages. Inside each nested page, I added the following to the source code:

<div id="audioHolder">&nbsp;
</div>
<script>$("#audioHolder").mediaPlayer({type: "audio",width:"300px",source: FileLocation+ 'media/01.mp3'});</script>

It works fine in the first nested page, but not the subsequent ones. When numbering the audioHolder tag to 1,2,3, etc., the audio player functions but the interface separates into various parts.

Does anyone have a work around for this? Thanks in advance for your comments.

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #4973 by ronm
Replied by ronm on topic nested pages audio
Hi
you do need to name each holder uniquely so you were right to try audioHolder1, audioHolder2 etc but try making the width 400px rather than 300px. I think there's a minimum width in which the default audio player and styling and controls will fit.

Here's a quick test showing it working: training.mitchellmedia.co.uk/xot/play.php?template_id=326

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/
The following user(s) said Thank You: mdowless

Please Log in or Create an account to join the conversation.

  • mdowless
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #4974 by mdowless
Replied by mdowless on topic nested pages audio
Worked like a charm. Thank you Ron!

Please Log in or Create an account to join the conversation.

Moderators: ingdon
Time to create page: 0.123 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo