The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Closing a Moodle window from a XERTE SCROM object

  • paul.mee
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
11 jaren 6 maanden geleden #2565 door paul.mee
Hi

Has anyone found a nice solution for elegantly ending a session viewing a Xerte created SCORM object in Moodle. I tried to put a hyperlink in my final page to take me back to the Moodle home page , this worked , but it just pushes the Moodle player window behind the browser and then when a new object is opened it appears in the background i.e. you don't see it.

The only 'solution' I have found I have is to close the window by hitting the cross in the upper right of the browser window. Which is rather ugly.

I found a nice bit of html to add a window close button

<input type="button" value="Close window" onclick="self.close()">

It works in the Xerte viewer but has no effect when its embedded in Moodle

Any ideas gratefully received

Paul

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
11 jaren 2 maanden geleden #2747 door JohnSmith
Beantwoord door JohnSmith in topic Closing a Moodle window from a XERTE SCROM object
Hi Paul,

Sorry it's been so long and no-one has replied to this. Did you ever manage to find anything that would work reliably?

I had a quick Google and it seems that others have a similar issue, although not with XOT, but have found no solution so it may not be possible in a short line of code but require something more substantial to communicate back to MOODLE...

Did you try window.close() although I expect this to exhibit the same behaviour as self.close()

John

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

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