getting the score via javascript
I did some testing and it seems that if I add this to module 1
window.cpAPIInterface.setVariableValue( SCORM_CallLMSSetValue('cmi.comments', "yes"));
then in module 2
mycom= SCORM_CallLMSGetValue('cmi.comments')
No value is returned.
It does work for module 2 if i do this
window.cpAPIInterface.setVariableValue( SCORM_CallLMSSetValue('cmi.comments', "yes"));
mycom= SCORM_CallLMSGetValue('cmi.comments') Returns "yes"
The question is how can i get data from other modules, cmi.core.score.raw does the same returns no value unless is generated from the same module
I thought this data would be available to all modules once it was added to the moodle database
Thanks
MM
