<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Haven't tried it.<br>It worked on one LMS so I figured it would work on Moodle.<br><br>The weird thing is I have:<br><pseudo><br><br>if (getValue == 'undefined') {<br>  value = '';<br>}<br><br>But it is returning null.<br>It's almost like the get is working, but not the set.<br><br><br><hr id="stopSpelling">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Thu, 31 Mar 2011 14:04:12 +0100<br>Subject: [Xerte] Re: Moodle and cmi calls<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">

<style>
.ExternalClass .ecxhmmessage P
{padding-right:0px;padding-left:0px;padding-bottom:0px;padding-top:0px;}
.ExternalClass BODY.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>

<style>
</style><style title="owaParaStyle">
.ExternalClass P
{margin-bottom:0px;}

</style>


<div style="font-size: 13px; color: rgb(0, 0, 0); direction: ltr; font-family: Tahoma;">
<div>check the manual</div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">cmi.core.suspend_data? //but I think you're right cmi.suspend_data?</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">What happens in the test suite?</font></div>
<div dir="ltr"><font color="#000000" face="Tahoma" size="2"></font> </div>
<div id="ecxdivRpF367649" style="direction: ltr;">
<hr>
<font color="#000000" face="Tahoma" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett@hotmail.com]<br>
<b>Sent:</b> 31 March 2011 12:43<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Moodle and cmi calls<br>
</font><br>
</div>
<div></div>
<div><br>
Any reason for this to not work in Moodle?<br>
<br>
<span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">_level0.setValue('cmi.suspend_data', 'some text');<br>
and <br>
_level0.getValue('cmi.suspend_data');</span><br>
<br>
<span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">getValue returns null,
</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">setValue seems to do nothing.<br>
<br>
No API adapter errors come up.<br>
<br>
Dave<br>
</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"></span></div>
</div>
<br>

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.
<BR>

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.
<BR>



<br>_______________________________________________
Xerte mailing list
Xerte@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.                                         </body>
</html>