Javascript to put content of WebObject into variable or array?
Captivate 9, fully updated.
HTML5 output only.
Non-responsive only.
Hello.
I have Captivate slide accessed from our training server.
The slide has a WebObject that displays information from a hospital Patient System on a different server.
(I have no control over the Patient System, it is created and managed by a third party.)
As a student task I need the student to browse the patients in the WebObject, and then click the Task Finished button on the slide.
When Task Finished is clicked, I need to identify the PatientID so that I can use it in Captivate.
The PatientID is always located in the HTML code <label id="PatientID">ABC123</label>
I know how to create all of this in Captivate.
The only part of this that I cannot do is getting the content of the WebObject into a javascript variable or array.
Once I have the content in a javascript variable or array, I know how to search through it to locate the PatientID.
My Question:
I have searched online and found lots of Javascript information about getting the content of an iFrame, but to be honest I'm finding it confusing, and I just don't know where to start.
What I would appreciate is for just a quick and dirty pointer as to how to start this.
Thank you
Peter
(The URLs in the image below are dummies just for example.)

