Forum Discussion
Access Rise 360 web exported content via jQuery
Hello community,
I created a course with Rise 360 and exported the course for web. I added a jQuery cdn and did a simple test to see if jQuery works when double clicking the index.html file and it did.
So I want to access some of my content within the course. E.g. extract some text parts or check if a button is clicked.
When doing this with jQuery it doesn't always work because the original content of the course is loaded a few seconds later sometimes and this causes problems with retrieving the content since the actual content is not loaded yet but my code already tried to get the content.
I tested it with this code:
$(document).ready(function() { console.log($("#app").html()); });
Sometimes I receive the whole html part after the #app selector and sometimes I receive only a short part which says "Your content is loading" (see the images).
It would be great if there is a possibilty to wait for the content until is loaded and after that I could retrieve the content I want to but I don't know how to wait for the content.