<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Waiting for the hosting service to get back to me.<br><br>Martin pointed me to a brilliant little free tool - ProddingSCO<br>You just mount it on the LMS and it lets you do all sorts of diagnostics:<br><br>Sample log from my test:<br><br><div>LMSInitialize("") returns "true" </div>
<div>LMSSetValue("cmi.core.score.raw","1") </div>
<div>Returns "true" </div>
<div>LMSGetValue("cmi.core.score.raw") </div>
<div>Returns "" </div><br><br>You tell me.<br>No error messages, no red lights, no alerts.<br>And no return value.<br><br><br><br><br><hr id="stopSpelling">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br>Date: Fri, 1 Apr 2011 13:47:39 +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>


<div style="font-size: 13px; color: rgb(0, 0, 0); direction: ltr; font-family: Tahoma;">
<div>is it your problem then?</div>
<div dir="ltr"><font color="#000000" face="Tahoma" size="2"></font> </div>
<div id="ecxdivRpF420831" 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> 01 April 2011 12:02<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: Moodle and cmi calls<br>
</font><br>
</div>
<div></div>
<div><br>
Did all that.<br>
<br>
In the wrapper, debugging true , alerts all the way through the process.<br>
<br>
No errors, but it just returns null on this system.<br>
<br>
Original system developed on (not Moodle) - works.<br>
Tom's Moodle 2 - works<br>
Tom's Moodle 1.9 - works<br>
<br>
The fact that it is returning null leads me to believe it is reading the LMS.<br>
<br>
But set is doing nothing.<br>
Has to be something in this particular setup.<br>
<br>
<br>
<br>
<hr id="ecxstopSpelling">
From: Julian.Tenney@nottingham.ac.uk<br>
To: xerte@lists.nottingham.ac.uk<br>
Date: Fri, 1 Apr 2011 11:48:55 +0100<br>
Subject: [Xerte] Re: Moodle and cmi calls<br>
<br>
<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>
<div style="font-size: 13px; color: rgb(0, 0, 0); direction: ltr; font-family: Tahoma;">
<div>then it wouldn't comply. I suppose it's possible but I don't think that's the right tree to bark up.</div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">How far through the process can you prove things are working?</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">You can run alerts, or get evidence all the way through the javascript fucntion calls? Does data appear to be being set from api wrapper?</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">If you can, the problem lies on the moodle side of things.</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">You can see the api is found and initialised? Do you have access yourself so you can try stepping through it all? I'd try and get to the point where you can prove it's not your problem to solve...</font></div>
<div><font face="tahoma"></font> </div>
<div>Tried another package you know to be ocmpliant? I think the ADL site had some lab rats you could use. Try and get Xerte / Flash out of the picture and see what happens? That will make it easier to prove...</div>
<div dir="ltr"><font color="#000000" face="Tahoma" size="2"></font> </div>
<div id="ecxdivRpF38614" 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> 01 April 2011 10:46<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: Moodle and cmi calls<br>
</font><br>
</div>
<div></div>
<div>The plot thickens.<br>
<br>
Tom (Thanks Tom!) has tested on his Moodle install and it works as expected.<br>
<br>
The hosting service I am loading to uses Moodle 1.9.11.<br>
I do not think the version is the issue.<br>
<br>
Is it possible to disable specific data elements?<br>
Since suspend_data is one of the few places you can dump stuff on the LMS, maybe they disabled for security reasons?<br>
<br>
Dave<br>
<br>
<br>
<hr id="ecxstopSpelling">
Date: Fri, 1 Apr 2011 00:21:58 +0200<br>
From: reijnders@tor.nl<br>
To: xerte@lists.nottingham.ac.uk<br>
Subject: [Xerte] Re: Moodle and cmi calls<br>
<br>
I tried it on a quiz in moodle 2 (Moodle 2.0.2 (Build: 20110221))<br>
<br>
It works (as long as you do not start a new attempt). Than  suspend_data gets erased.<br>
<br>
I am happy to test your file. <br>
<br>
Regards,<br>
<br>
Tom<br>
<br>
<br>
Op 31-3-2011 19:08, Dave Burnett schreef:
<blockquote><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><br>
Anyone have Moodle access?<br>
I have a barebones 150K zip with nothing but a set/get pair.<br>
<br>
Could this hosting service have killed the stored proc for suspend_data or something?<br>
<br>
<br>
<br>
<hr id="ecxstopSpelling">
From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:Julian.Tenney@nottingham.ac.uk">
Julian.Tenney@nottingham.ac.uk</a><br>
To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte@lists.nottingham.ac.uk">
xerte@lists.nottingham.ac.uk</a><br>
Date: Thu, 31 Mar 2011 17:49:25 +0100<br>
Subject: [Xerte] Re: Moodle and cmi calls<br>
<br>
<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>
<div style="font-size: 13px; color: rgb(0, 0, 0); direction: ltr; font-family: Tahoma;">
<div>it ought to commit onUnload of the web apge, I think, if it hasn't already. But there's no need to: that's all handled by the js.</div>
<div dir="ltr"> </div>
<div id="ecxdivRpF334752" style="direction: ltr;">
<hr>
<font color="#000000" face="Tahoma" size="2"><b>From:</b> <a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte-bounces@lists.nottingham.ac.uk">
xerte-bounces@lists.nottingham.ac.uk</a> [<a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Dave Burnett [<a class="ecxmoz-txt-link-abbreviated" href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>]<br>
<b>Sent:</b> 31 March 2011 17:06<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: Moodle and cmi calls<br>
</font><br>
</div>
<div><br>
Can't suss it.<br>
<br>
alert("api var " + api);<br>
[object object]<br>
<br>
setValue<br>
alert(name); //cmi.suspend_data<br>
alert(value); //3<br>
No errors<br>
<br>
getValue<br>
alert(value); //null<br>
No errors<br>
<br>
Do I need to force a commit or something?<br>
How do I call that from Xerte? <br>
<br>
<br>
<br>
<hr id="ecxstopSpelling">
From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:Julian.Tenney@nottingham.ac.uk">
Julian.Tenney@nottingham.ac.uk</a><br>
To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte@lists.nottingham.ac.uk">
xerte@lists.nottingham.ac.uk</a><br>
Date: Thu, 31 Mar 2011 15:49:36 +0100<br>
Subject: [Xerte] Re: Moodle and cmi calls<br>
<br>
<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>
<div style="font-size: 13px; color: rgb(0, 0, 0); direction: ltr; font-family: Tahoma;">
<div>never n eeded to in the tset stuite: the suite should tell you whether things are initalising or not?</div>
<div dir="ltr"> </div>
<div id="ecxdivRpF823915" style="direction: ltr;">
<hr>
<font color="#000000" face="Tahoma" size="2"><b>From:</b> <a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte-bounces@lists.nottingham.ac.uk">
xerte-bounces@lists.nottingham.ac.uk</a> [<a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Dave Burnett [<a class="ecxmoz-txt-link-abbreviated" href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>]<br>
<b>Sent:</b> 31 March 2011 15:21<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] Re: Moodle and cmi calls<br>
</font><br>
</div>
<div><br>
Can I turn on debugging for the API intialization?<br>
<br>
I set var _Debug = true; in apiwrapper.js but get nothing.<br>
<br>
Does that necessarily mean it setting up OK?<br>
<br>
<br>
<hr id="ecxstopSpelling">
From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:Julian.Tenney@nottingham.ac.uk">
Julian.Tenney@nottingham.ac.uk</a><br>
To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte@lists.nottingham.ac.uk">
xerte@lists.nottingham.ac.uk</a><br>
Date: Thu, 31 Mar 2011 14:04:12 +0100<br>
Subject: [Xerte] Re: Moodle and cmi calls<br>
<br>
<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> </div>
<div><font face="tahoma">cmi.core.suspend_data? //but I think you're right cmi.suspend_data?</font></div>
<div> </div>
<div><font face="tahoma">What happens in the test suite?</font></div>
<div dir="ltr"> </div>
<div id="ecxdivRpF367649" style="direction: ltr;">
<hr>
<font color="#000000" face="Tahoma" size="2"><b>From:</b> <a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte-bounces@lists.nottingham.ac.uk">
xerte-bounces@lists.nottingham.ac.uk</a> [<a class="ecxmoz-txt-link-abbreviated" href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Dave Burnett [<a class="ecxmoz-txt-link-abbreviated" href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>]<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><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 <a class="ecxmoz-txt-link-abbreviated" href="mailto:Xerte@lists.nottingham.ac.uk">
Xerte@lists.nottingham.ac.uk</a> <a class="ecxmoz-txt-link-freetext" href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a> 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. </div>
</div>
<br>
_______________________________________________ Xerte mailing list <a class="ecxmoz-txt-link-abbreviated" href="mailto:Xerte@lists.nottingham.ac.uk">
Xerte@lists.nottingham.ac.uk</a> <a class="ecxmoz-txt-link-freetext" href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a> 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. </div>
</div>
<br>
_______________________________________________ Xerte mailing list <a class="ecxmoz-txt-link-abbreviated" href="mailto:Xerte@lists.nottingham.ac.uk">
Xerte@lists.nottingham.ac.uk</a> <a class="ecxmoz-txt-link-freetext" href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a> 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.
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
Xerte mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a>

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.

  </pre>
</blockquote>
<br>
<pre class="ecxmoz-signature">-- <br>--<br><br>Tom Reijnders<br>TOR Informatica<br>Chopinlaan 27<br>5242HM Rosmalen<br>Tel: 073 5226191<br>Fax: 073 5226196<br><br></pre>
<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.
</div>
</div>
<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.
</div>
</div>



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