<div>In an individual page project i.e. desktop not pageTemplates</div><div><br></div><div> _level0.contentXML._url</div><div><br></div><div>returns undefined</div><div><br></div><div>_level0contentXML._url <br></div><div>
<br></div><div>returns </div><div><br></div><div>file://C:\Users\JOHNAT~1\AppData\Local\Temp\A059wrd.~lk\1088wrdata.~lk\~swd2.dat</div><div><br></div><div>So that does not look like a runner for the page wizard / XOT test.</div>
<div><br></div><div>I am taking all the steps I can to ensure that nothing will get broken.</div><div><br></div><div>The changes that I am making to the models with respect to exposing the display text are all designed to ensure that the model files will operate on existing project data, but I agree that as soon as I can get the models finished we need to get them tested in a XOT environment.</div>
<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><br><div class="gmail_quote">On 27 February 2012 13:59, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Agreed.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="margin-left:36.0pt">
<b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Ron Mitchell<br>
<b>Sent:</b> 27 February 2012 13:58</span></p><div><div class="h5"><br><b>To:</b> 'For Xerte technical developers'<br><b>Subject:</b> [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon</div>
</div></div></div><div><div class="h5"><p class="MsoNormal" style="margin-left:36.0pt"> </p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I 'm probably missing where you're at with this or what you're trying to achieve but In XOT _level0.contentXML._url ends with the filename e.g. modules/xerte/parent_templates/Nottingham/Nottingham.rlt</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">What I'm a little concerned about with all these developments and changes is that I think some thorough testing will be needed to ensure existing XOT lo's and installations aren't broken by the new release. I know we're all conscious of that but in my experience it could prove quite tricky to test and ensure everything still works.</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">HTH</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ron</span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> 27 February 2012 13:31<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon</span></p></div></div><p class="MsoNormal" style="margin-left:36.0pt">
 </p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I think it’s passed into the piece from the web page as the variable ‘file’. It will be on _level0.</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:72.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 27 February 2012 13:30<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon</span></p></div><p class="MsoNormal" style="margin-left:72.0pt">
 </p><div><p class="MsoNormal" style="margin-left:72.0pt">I believe you, but I'm b******d if I can find it.</p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
I can find a number of calls to jumpFile e.g. jumpFile(FILE);</p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">but I can't find where FILE is assigned a value.</p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">I have inspected in Xerte </p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div>
<div><p class="MsoNormal" style="margin-left:72.0pt">engine</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">engine.IFC</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">_level0.engine</p></div><div>
<p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">there is a urls property but it is, in a simple project, an array of 0 length.</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
 </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">I am sorry, I don't know where else to look and I need the time to work on the rest of the 2.18 stuff.</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
 </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">I will see how much progress I can make over  the next few days and then try again.</p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div>
<div><p class="MsoNormal" style="margin-left:72.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">Johnathan</p></div><p class="MsoNormal" style="margin-left:72.0pt">
 </p><div><p class="MsoNormal" style="margin-left:72.0pt">On 27 February 2012 12:36, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p><div>
<div><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">But in thepreloader the xml is laoded. So it must know what file to load in there somewhere.</span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:108.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 27 February 2012 12:23</span></p><div><div><p class="MsoNormal" style="margin-left:72.0pt"><br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon</p>
</div></div></div><div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p><div><p class="MsoNormal" style="margin-left:108.0pt">OK I can see in MainPreloader the jumpFile(url) method, and its reference to </p></div>
<div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">this.contentXML._url</p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">
but if I try in xerte to </p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">debug("contentXML = " + _level0.contentXML._url);</p></div>
<div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">I still get contentXML = undefined.</p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p>
</div><div><p class="MsoNormal" style="margin-left:108.0pt">If I try </p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">debug("contentXML = " + contentXML._url);</p>
</div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">I get </p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">
contentXML = <a>file://C:\Xerte2\XMLEngine.swf?id=133401039</a></p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">I don't know enough about the workings of Flash and Xerte to make any changes here but if you are able to add some code that will make the rlo or rlt file name  (or even just the extension)  accessible as a property I can test against, then I could use this as my test for desktop V XOT / pageTemplate.</p>
</div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">
Johnathan </p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">On 27 February 2012 07:55, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
<div><div><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If you look in MainPreloader, you’ll see how the variable is getting set: maybe put something in there to store the path / fileType better?</span></p>
<p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:144.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 25 February 2012 21:13</span></p><div><div><p class="MsoNormal" style="margin-left:108.0pt"><br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon</p>
</div></div></div><div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p><div><p class="MsoNormal" style="margin-left:144.0pt">Hello Julian,</p></div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div>
<div><p class="MsoNormal" style="margin-left:144.0pt">_level0.contentXML._url - this returns undefined</p></div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">
_level0.engine.contentXML._url  or rootIcon.contentXM._url both return </p></div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt"><a>file://C:Xerte2\XMLEngine.swf?id=77679910</a>  </p>
</div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">(my install folder is C:\xerte2)</p></div><div><p class="MsoNormal" style="margin-left:144.0pt">
 </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">Johnathan</p></div>
<div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">On 24 February 2012 10:20, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
<p class="MsoNormal" style="margin-left:144.0pt">Test this:<br><br>_level0.contentXML._url<br><br>It should be the url to the rlo / rlt file, with the extension on the end.</p><div><p class="MsoNormal" style="margin-left:144.0pt">
<br>-----Original Message-----<br>From: Tenney Julian</p></div><div><div><p class="MsoNormal" style="margin-left:144.0pt">Sent: 24 February 2012 09:41<br>To: 'For Xerte technical developers'<br>Subject: RE: [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon<br>
<br>if (pageIcon.extXML != undefined){<br>// Page Wizard<br><br>Yes, I think that will work. In any case, any engine test could also be written in the template.rlt, it will only use the same information to judge the situation.<br>
<br>Some usful thigns for testing environments:<br><br>if the LO has template data...<br>if a page has templateData...?<br>if mdm != undefined you are at design time in xerte on windows<br>if templatePath != undefined you are on a toolkits server else you're not.<br>
<br>-----Original Message-----<br>From: Tenney Julian<br>Sent: 22 February 2012 13:47<br>To: For Xerte technical developers<br>Subject: RE: [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon<br>
<br>They don't at the moment, but I think you need an engine-side test. I'll write something for you.<br>________________________________________<br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Kemp Johnathan [<a href="mailto:johnathan.kemp@ntlworld.com" target="_blank">johnathan.kemp@ntlworld.com</a>]<br>
Sent: 22 February 2012 07:18<br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon<br><br>Would it ever be the case that a XOT project would assign a value to a page Icon's templateData property?<br>
<br>If this would never happen then I can just reverse the original test, instead of testing for a project extXML I can test for pageIcon.extXML<br><br>if (pageIcon.extXML != undefined){<br>// Page Wizard<br><br>What do you think?<br>
<br>Kind regards<br><br>Johnathan<br><br>On 21 February 2012 16:54, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a><mailto:<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>>> wrote:<br>
Maybe you can check the value of the templateData attribute on LO icon? If undefined, it must be page wizards...  otherwise irs either XOT or a desktop template project.<br><br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>>] On Behalf Of Kemp Johnathan<br>
Sent: 21 February 2012 16:53<br><br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon<br><br>Neither am I.<br><br>I was going to ask you if you had any ideas where I would be able to access it.<br>
<br>Is the project file in a XOT project always called template? as in template.rlt.<br><br>It might be easier to check the file name rather than the extension as this will be available in templateData.<br><br>Kind regards<br>
<br>Johnathan<br><br>On 21 February 2012 14:38, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a><mailto:<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>>> wrote:<br>
Not sure how you get it mind.<br><br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>>] On Behalf Of Kemp Johnathan<br>
Sent: 21 February 2012 14:38<br><br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon<br><br>Sounds do-able, i'll have a go.<br><br>
JK<br><br>On 21 February 2012 13:16, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a><mailto:<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>>> wrote:<br>
Could you work on the filename, so if rlt else pageTemplates?<br><br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>>] On Behalf Of Kemp Johnathan<br>
Sent: 21 February 2012 12:52<br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: Xerte editor closes if you add a setup script to the Learning Object icon<br><br>Hello Julian,<br><br>Thanks for a quick fix - all tests so far suggest this has solved the problem :-)<br>
<br>Now that I am working on a default .rlo file for the "page projects" I am including a template and xwd file which is resulting in there being an extXML, it also means that now the project can take the project name from the extXML file just as with pageTemplates / XOT.<br>
<br>So I need a new test for identifying when the model is in XOT / pageTemplate projects and when it is in a desktop project.<br><br>What I would like to do is work on the principle that in XOT / pageTemplate projects the setup script will define a variable "xMode"<br>
<br>Then I can replace the original block<br><br>if (extXML == undefined){<br>   // Page Wizard<br>   pageIcon.templateData = pageIcon.extXML.toObject();<br>   pageIcon.templateData = pageIcon.templateData.pageWizard[0];<br>
} else {<br>  // Toolkits<br>  myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]);<br>  pageIcon.templateData = myXML.toObject();<br>  rootIcon.setTitleText(templateData.learningObject[0].name);<br>
}<br><br>with<br><br>if (xMode == undefined){<br>  // Page Wizard<br>  pageIcon.templateData = pageIcon.extXML.firstChild.toObject();<br> // pageIcon.templateData = pageIcon.templateData.pageWizard[0];<br>} else {<br>  // Toolkits<br>
  myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]);<br>  pageIcon.templateData = myXML.toObject();<br>  // rootIcon.setTitleText(templateData.learningObject[0].name);<br>}<br>rootIcon.setTitleText(templateData.learningObject[0].name);<br>
<br>The commented lines of code would be removed - they are just there to make explicit the changes I am proposing.<br><br>Not requiring to define a value for xMode in a desktop environment would make it easier to use the models in a pure desktop project (i.e. one in which the developer did not even use the "Create new Page Project option"), but it would need that all XOT projects and future pageTemplate projects had the xMode variable set.<br>
<br>What do you think?<br><br>Given that the line<br>rootIcon.setTitleText(templateData.learningObject[0].name);<br><br>works, would it also mean that if we had a method for the page icon to set it's title property that we could use<br>
<br>pageIcon.setTitleText(pageIcon.templateData.pageType[0].name);<br><br>As a way of overcoming the problem of using the name value to set up the page title display (probably wouldn't sort out the display of page titles in the TOC though) mmm.<br>
<br>Kind regards<br><br>Johnathan<br><br><br>On 21 February 2012 11:25, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a><mailto:<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>>> wrote:<br>
Try this one please.<br><br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>>] On Behalf Of Kemp Johnathan<br>
Sent: 20 February 2012 22:51<br>To: Xerte Developers Discussion List<br>Subject: [Xerte-dev] Xerte editor closes if you add a setup script to the Learning Object icon<br><br>I've been doing some tests as part of establishing a standard pagetemplate.rlo file for the new version of the xerte editor that handles individual page templates..<br>
<br>However I have hit a problem. I want to include one or more set up scripts as children of the Learning Object.<br><br>If you add a setup script then this breaks the process of adding a new page. The folder for the page is created in the "pages" folder and the xwd and xml files are created in the page's folder. However the insertion of the page model file into the project fails. This means that if you select "Yes" when the "Open the wizard" prompt is displayed then Xerte collapses to the task bar and won't open again.<br>
<br>If you then close down Xerte and then re-open the project the project behaves correctly until you try adding another page.<br><br>Kind regards<br><br>Johnathan<br><br><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>
<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>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><mailto:<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a>><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br><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>
<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br><br><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><mailto:<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a>><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br><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>
<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br><br><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><mailto:<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a>><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br><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>
<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br><br><br><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><mailto:<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a>><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br><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>
<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br><br><br><br><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a></p></div></div></div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div>
</div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:108.0pt"><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br><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>
<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.</p></div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div></div></div></div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:72.0pt">
<br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<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>
<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.</p></div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div></div></div></div><br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<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>

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