[Xerte] Re: Moodle and cmi calls

Dave Burnett d_b_burnett at hotmail.com
Thu Mar 31 17:06:41 BST 2011



Can't suss it.

alert("api var " + api);
[object object]

setValue
alert(name); //cmi.suspend_data
alert(value); //3
No errors

getValue
alert(value); //null
No errors

Do I need to force a commit or something?
How do I call that from Xerte? 



From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 31 Mar 2011 15:49:36 +0100
Subject: [Xerte] Re: Moodle and cmi calls











never n eeded to in the tset stuite: the suite should tell you whether things are initalising or not?
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 31 March 2011 15:21

To: Xerte list

Subject: [Xerte] Re: Moodle and cmi calls







Can I turn on debugging for the API intialization?



I set var _Debug = true; in apiwrapper.js but get nothing.



Does that necessarily mean it setting up OK?






From: Julian.Tenney at nottingham.ac.uk

To: xerte at lists.nottingham.ac.uk

Date: Thu, 31 Mar 2011 14:04:12 +0100

Subject: [Xerte] Re: Moodle and cmi calls





check the manual
 
cmi.core.suspend_data? //but I think you're right cmi.suspend_data?
 
What happens in the test suite?
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 31 March 2011 12:43

To: Xerte list

Subject: [Xerte] Moodle and cmi calls







Any reason for this to not work in Moodle?



_level0.setValue('cmi.suspend_data', 'some text');

and 

_level0.getValue('cmi.suspend_data');



getValue returns null,
setValue seems to do nothing.



No API adapter errors come up.



Dave





This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
 contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be
 monitored as permitted by UK legislation. 



_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
 If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
 do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
 checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.






_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110331/ae5b60e3/attachment.html>


More information about the Xerte mailing list