Skip to main content
Participant
July 1, 2013
Answered

cpEIGetValue unavailable on Captivate7 ?

  • July 1, 2013
  • 1 reply
  • 1326 views

Hello,

I need to get some quiz values (i.e, cpQuizInfoPointsscored) trough Javascript for sending them periodically to LMS server, but It seems this values are no longer available on Captivate7 (as far as I can test).

So, if I use the following code on the "on Enter" event of a quiz slide, it doesn't works because cpEIGetValue() is not a member of 'document.Captivate':

var objCP=document.Captivate;

var score=objCP.cpEIGetValue('cpQuizInfoPointsscored ');

Any hints ?

Thank you in advance

Sergio

This topic has been closed for replies.
Correct answer Suresh Jayaraman

Try this

var objCP=document.Captivate;

var score=objCP.cpEIGetValue('m_VarHandle.cpQuizInfoPointsscored ');

for more info check out - http://captivatedev.com/2012/07/01/adobe-captivate-6-the-javascript-api/

Thanks

Suresh J

1 reply

Suresh JayaramanCorrect answer
Inspiring
July 2, 2013

Try this

var objCP=document.Captivate;

var score=objCP.cpEIGetValue('m_VarHandle.cpQuizInfoPointsscored ');

for more info check out - http://captivatedev.com/2012/07/01/adobe-captivate-6-the-javascript-api/

Thanks

Suresh J

SNA01Author
Participant
July 2, 2013

Hello Suresh, and thank you for your response.

Unfortunately, that does not work because it is not a "cpQuizInfoPointsscored" issue.

The trouble comes because method "cpEIGetValue()" is not a member of 'document.Captivate' on CP7

Regards

Participating Frequently
July 2, 2013

Hi,

I just tried this:

var cp = document.Captivate;

alert(cp.cpEIGetValue("m_VarHandle.cpQuizInfoPointsscored"));

And this worked for me. Can you please try the above snippet and let us know ?

Thanks,

Pavan