Supporting each other

Community forums

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

TOPIC:

session expired error 2 months 2 weeks ago #9112

  • teacherjonny
  • teacherjonny's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
Here is an example of a simple code snippet that, in Xerte, will produce a error popup that says that my session has expired. Almost every time I use the script box I het that error. Here is some code that runs without a problem in a browser:
<!DOCTYPE html>
<html>
<body>

<button onclick="playVid()" type="button">Play Video</button>
<button onclick="pauseVid()" type="button">Pause Video</button><br>

<video id="myVideo" width="320" height="176"autoplay="true">
<source src="essentialhebrew.com//xrtAssets/video/snowy_owl.mp4" type="video/mp4">

Your browser does not support HTML5 video.
</video>

<script>
let vid = document.getElementById("myVideo");

function playVid() {
vid.play();
// alert(vid.duration);
}

function pauseVid() {
vid.pause();
}
</script>



</body>
</html>
Thank.

Please تسجيل الدخول or Create an account to join the conversation.

session expired error 2 months 2 weeks ago #9113

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1265
  • Thank you received: 319
Hi,

What exactly do you put in the script box?
The following user(s) said Thank You: teacherjonny

Please تسجيل الدخول or Create an account to join the conversation.

session expired error 2 months 2 weeks ago #9114

  • teacherjonny
  • teacherjonny's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
Here's what I put in the script box:
let vid = document.getElementById("myVideo");

function playVid() {
vid.play();
// alert(vid.duration);
}

function pauseVid() {
vid.pause();
}

Please تسجيل الدخول or Create an account to join the conversation.

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

Search