Forum Discussion

SuneBjerre's avatar
SuneBjerre
Community Member
22 days ago

Embed in iFrame and hide Cover Page

Hi there,

I need to embed a Rise course in an iframe. I can do this if I publish my course to web. If I then embed (via iFrame) the index-file from my web-export, everything works fine.

BUT, I really need to hide the Cover Page too. So instead of exporting to web I have to export to LMS. Here I select "Hide Cover Page" and extract the files from the scormcontent-folder.

Now if I try to embed the index-file from the LMS-export, the loading animation will keep running without ever showing my content. Can anyone tell me why this is? Perhaps tell me which lines of code are problematic, so I can remove them?

 

  • Seems like I found a solution.

    If I publish to LMS and choose "xAPI" I can run the index-file in an iframe without any cross-domain errors.

    This means I can host the Rise-files on my server and then embed them in another website WITHOUT showing the cover page.

     

  • It wouldn't be possible to use the LMS version outside an LMS

  • SuneBjerre's avatar
    SuneBjerre
    Community Member

    That depends on how you use it. As it is now, you can't hide the cover page, when exporting to web. But there is a work-around:

    1. Export to LMS
    2. Open the zip-file and extract the folder "scormcontent"
    3. Execute the index-file in that folder.

    This way you can run the course in a browser without showing the cover page.

    I'm aware that the js-files (and even the index-file) contains loads of code and functions, that comes from the LMS part of the export. But it works....well except when embedding it in an iframe. And this is what I'm asking: If anyone knows why it works directly in a browser, but not when in an iframe?

    Ofcourse the best solution would be to allow hiding the cover page in a web-export. This is a feature I can see other people has asked for, but sadly hasnt been introduced yet.

  • SuneBjerre's avatar
    SuneBjerre
    Community Member

    Seems like I found a solution.

    If I publish to LMS and choose "xAPI" I can run the index-file in an iframe without any cross-domain errors.

    This means I can host the Rise-files on my server and then embed them in another website WITHOUT showing the cover page.