New 1.2 template for captivate problem

70 views
Skip to first unread message

WL

unread,
Feb 23, 2012, 1:54:24 PM2/23/12
to eLearning Technology and Development
Hi Phil,

I use this below to get the status from my LMS. In the old naff
captivate template, I got a result in my text field and i was able to
do stuff with this. With the new cleaned up template, (which is
faster and much better) I just get an "undefined". it looks likeI'm
not getting anything back from the LMS or its wrong data. Is there a
way to get it to work using the new 1.2 template? Is this expected.
make my day if I could get it to work :)

ta WL

import flash.external.ExternalInterface;
var myRoot:MovieClip = MovieClip(root);
var mainmov:MovieClip = MovieClip(myRoot.parent.root);



var UserStatus:String =
String(ExternalInterface.call('g_objAPI.LMSGetValue','cmi.core.lesson_status'));

if (UserStatus=="passed"){
//getStat is a variable in captivate
mainmov.getStat = Number(1)

userTxt.text = "hey you have passed well done!"

&&etc.....

Philip Hutchison

unread,
Feb 23, 2012, 2:40:11 PM2/23/12
to elearning-technolo...@googlegroups.com
g_objAPI doesn't exist anymore, use SCORM_API instead

__________________________
sent from my mobile

> --
> You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
> To post to this group, send email to elearning-technolo...@googlegroups.com.
> To unsubscribe from this group, send email to elearning-technology-and...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/elearning-technology-and-development?hl=en.
>

Teddington Boy

unread,
Feb 23, 2012, 5:56:13 PM2/23/12
to elearning-technolo...@googlegroups.com
Gotcha

Thanks

Wl

Sent from my iPhone

Teddington Boy

unread,
Feb 24, 2012, 6:23:11 AM2/24/12
to elearning-technolo...@googlegroups.com
Hi Phillip

We are having kittens trying to get ie9 to bookmark with the cleaned up htm
If you switch manually to comparability view it works. So we have added
The IE=EmulateIE8 tag in the header but this dosn't work either. Is there a better place to add this we only need it to go to comparability view when the sco launches

Any help would be great


Wl

Sent from my iPhone

On Feb 23, 2012, at 7:40 PM, Philip Hutchison <plate...@gmail.com> wrote:

Philip Hutchison

unread,
Feb 24, 2012, 11:08:58 PM2/24/12
to elearning-technolo...@googlegroups.com
Thanks for the feedback, sorry to hear you're having issues.

The template's JavaScript doesn't use any JS features that were altered between IE8 and IE9, so compatibility mode shouldn't have any effect. It's especially odd that it would only affect bookmarking and not anything else. It's possible the SCORM frameset created by the LMS could have some code that affected by compatibility mode, too.

I will run some tests and see if I find any irregularities.

- philip

Teddington Boy

unread,
Feb 28, 2012, 9:20:21 AM2/28/12
to elearning-technolo...@googlegroups.com
Hi Phillip

Try as I might I can't get 

   var UserStatus:String =
String(ExternalInterface.call('SCORM_API.LMSGetValue','cmi.core.score.raw'));

Shouldn't it return the score on the grade book ?

Thanks


WL

Sent from my iPhone

On Feb 23, 2012, at 7:40 PM, Philip Hutchison <plate...@gmail.com> wrote:

Philip Hutchison

unread,
Feb 28, 2012, 5:10:05 PM2/28/12
to elearning-technolo...@googlegroups.com
That looks correct.  Has cmi.core.score.raw been set?  

Maybe you should try a param that you're certain has data, just to make sure the approach is valid. Try cmi.core.lesson_status since we know it will always return a string, no matter where you are in the course:

var status:String = ExternalInterface.call('SCORM_API.LMSGetValue','cmi.core.lesson_status');

Teddington Boy

unread,
Mar 5, 2012, 11:16:43 AM3/5/12
to elearning-technolo...@googlegroups.com
Hi Philip 
I'm just about to add your cleaned up HTML to a huge elearning project 
We have tested it and it works really well so thanks again. 

My dev asked me a question and I don't know the best way to go about it. He has noticed that my sco which has a lesson and a quiz together sends a score to the grade book of zero even if it hasn't got to the quiz. He wants to suppress any score going to the grade book so he can get an incomplete status. Is there a way using your template that I can do this have created various widgets in captivate but I don't seem to be able to stop the score 
Any ideas


Wl


Sent from my iPhone

Philip Hutchison

unread,
Mar 5, 2012, 7:48:43 PM3/5/12
to elearning-technolo...@googlegroups.com
You can edit the template to ignore setting cmi.core.score.raw if the value is less than 1, but it could potentially create a bug in your course -- what if someone legitimately scores 0?

Besides, setting cmi.core.score.raw should not affect the value of cmi.core.lesson_status in the LMS, because score.raw can be updated at any time -- the LMS has no way to know when the score is finalized. Therefore it's up to the course to set the value of cmi.core.lesson_status ("incomplete", "passed", "failed", etc.) when appropriate.  Captivate handles this through an internal tracking mechanism.
Reply all
Reply to author
Forward
0 new messages