Skip to main content
Participant
May 19, 2014
Question

Is it possible to display a value on the Internet within Captivate?

  • May 19, 2014
  • 1 reply
  • 259 views

Is there a way to populate a variable in a published Captivate 7 project from a value found on a web page. I could be wrong, but don't see how it is without a widget.  If so, I am not able to locate one.

Here's an example of what I'm looking for: An XML value exists on web page abc.com. Captivate locates that value and displays it as text within the deliverable. When the value changes on the web page, it automatically changes in the deliverable.

Thanks!

This topic has been closed for replies.

1 reply

TLCMediaDesign
Inspiring
May 19, 2014

You should be able to do this with server-side scripts. A Flash widget would have a tough-time because the site you are parsing would need to allow cross-domain.

Alpha-ManAuthor
Participant
May 19, 2014


Thanks for the insight. Once the script's in place, how would Captivate capture it?...via a System Variable such as CPInfoWebsite? Not sure if that makes sense, but it's the closest thing I can find.

TLCMediaDesign
Inspiring
May 20, 2014

You'd need to create a user variable in Captivate and then populate the variable using JavaScript:

function getUrlVar()

{

     var cp = document.Captivate;
     alert(cp.cpEISetValue("m_VarHandle.yourVariable", "yourValue));

}

When you need the value call JavaScript in a Captivate:

getUrlVar();