Forum Discussion

RonLinder-4c1a3's avatar
RonLinder-4c1a3
Community Member
2 months ago

Web Object check if div ID exists

I have a web object to an external website. In that website there is a captivate file (I have no access to the raw data but only to this site). 

I am trying to trigger something when a div shows up. The only issue I have is when I load the javascript on start of that slide it only reads the div's that are loaded initially. It never sees the new divs.

For example, the user clicks on a button, by doing so it creates a new div with id="new". I want to be able to find out if id="new" exist and keep checking until it does via storyline.

 

The site I am using that has the captivate file is this one: www.labour.gov.on.ca/english/hs/elearn/worker/main.html

I want my storyline to know when the user completes that course.

1 Reply

  • I noticed that at the end there is an id="conclusion_getCertificate_btn" that appears so my logic was to check when it shows up to know that the module was complete.