<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>Yes, it was me who was losing the information from my model.<div><br></div><div>I think I was inserting Xerte models into XOT and finding it was actually creating a new page, reading the model contents (less the <LO> etc) and inserting that inside the new page tags.  </div><div><br></div><div><br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte-dev@lists.nottingham.ac.uk<br>Date: Tue, 14 Feb 2012 14:03:34 +0000<br>Subject: [Xerte-dev] Re: navigating to page name<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass .ecxshape
{;}
</style><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxemailstyle17
{;}
.ExternalClass span.ecxecxemailstyle18
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxecxemailstyle171
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass span.ecxecxemailstyle181
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:"Times New Roman","serif";}
.ExternalClass span.ecxEmailStyle30
{font-family:"Calibri","sans-serif";color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">No, I’m pretty sure: pages still exist after they are killed, just their contents are wiped, and pages need to exist in the xml before INTERFACE can be initialised. I think you were writing to ICONS within the page rather than icons? </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[upper case is object from flash class, lowercase is xml node]</span></p><p class="ecxMsoNormal"><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="ecxMsoNormal" 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""> xerte-dev-bounces@lists.nottingham.ac.uk [mailto:xerte-dev-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 14 February 2012 14:01<br><b>To:</b> xerte-dev@lists.nottingham.ac.uk<br><b>Subject:</b> [Xerte-dev] Re: navigating to page name</span></p></div></div><p class="ecxMsoNormal" style="margin-left:36.0pt"> </p><div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I think we just ran across that tidbit a couple weeks ago in another context.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Or the page *was* being destroyed and replaced. I was losing info somehow.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Let me see if I can find the thread..</span></p></div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><div class="ecxMsoNormal" align="center" style="margin-left:36.0pt;text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><hr size="2" width="100%" align="center" id="ecxstopSpelling"></span></div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From: Julian.Tenney@nottingham.ac.uk<br>To: xerte-dev@lists.nottingham.ac.uk<br>Date: Tue, 14 Feb 2012 13:38:30 +0000<br>Subject: [Xerte-dev] Re: navigating to page name</span></p><div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Yes, that’s right, I’ve just checked in the engine: the page icon is the icon you create here, with the path to the model on it.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The engine loads up the model, and pastes it’s children into the page icon created in makePages. It does not replace the icon itself.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" 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""> xerte-dev-bounces@lists.nottingham.ac.uk [mailto:xerte-dev-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br><b>Sent:</b> 14 February 2012 13:32<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: navigating to page name</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p></div></div><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Part of the problem has been the lack of a suitable identifier for each page that could be set within an xwd form</span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif"">Why can’t you set attributes on the icon in the makePages script, in these bits of code?</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">if (modName == 'xerteModel'){</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">  newXML = new XML('<PG model="' + extXML.firstChild.childNodes[i].attributes.modelFile + '"/>');</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">  //is there an initObject...?</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">  if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">    newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject;</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">  }</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">} else {</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray"> newXML = new XML('<PG model="templatePath + \'models/' + modName + '.rlm\'"/>');</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">}</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">newChild = newXML.firstChild;</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name;</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID;</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">  </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">  linkIndex = i;</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">}</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New";color:gray">ifc.appendChild(newChild);</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:8.0pt;font-family:"Courier New""> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">newChild is the xml that is added to the interface. The engine then loads up the modesl identified in each page attached, but does not replace the page icons you create here.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">You won’t see the changes at design time(i.e. populate the name property in the xerte editor), but they can be set at runtime, and thus be used for navigation.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" 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""> xerte-dev-bounces@lists.nottingham.ac.uk [mailto:xerte-dev-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Kemp Johnathan<br><b>Sent:</b> 14 February 2012 12:36<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: navigating to page name</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p></div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I have considered how to implement the ability to route pages for some time now. Part of the problem has been the lack of a suitable identifier for each page that could be set within an xwd form. In page wizards I used the "name" field of the page icon, but this is not definable from an xwd form. </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">In pageTemplates projects the xwd defined name value is used as the page title and there is no way to set the page Icon name property. The page title is a bad candidate as a unique identifier as its main function is to be a a page title making it potentially lengthy, potentially liable to change, possibly even unique and probably more prone to error in typing when referring to it as a page destination.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">As part of the move to individual page templates I am including in every xwd file an optional property pageID the purpose of which is to act solely as an identifier to enable other pages to locate it in the project.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I have a number of page wizards that I will be converting to individual page templates that offer routing i.e. the ability to specify a target page which the user will be taken to on completing an action e.g. making a selection from a multiple choice question, clicking on a link in some text etc. These will use the new pageID property.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">This is achieved by using the following code.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">In the rlm file's getPageID script the following opening is used for any page that offers routing</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">if (extXML == undefined){ // Page Wizard <br>    pageIcon.templateData = pageIcon.extXML.toObject();<br>    pageIcon.templateData = pageIcon.templateData.pageWizard[0];<br><br>    // routed pages only<br>    pageID_array = new Array();<br>    for (i = 0; i < rootIcon.pages.length; i++){<br>      pageID_array.push(rootIcon.pages[i].extXML.firstChild.childNodes[0].attributes.pageID);<br>    }<br><br>} else { // 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>   // routed pages only<br>   pageID_array = new Array(); <br>   for (i = 0; i < extXML.firstChild.childNodes.length; i++){<br>     pageID_array.push(extXML.firstChild.childNodes[i].attributes.pageID);<br>   }  <br>}</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">This makes available to the routed page an array of every page in the project with a value for pageID where it has been defined. </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Navigation to a page can then be handled in a manner such as<br><br>// navigate to destination page<br>for (i = 0; i < pageID_array.length; i++){<br>   if (pageID_array[i] == destPageName){<br>     pageFound = "true";<br>     destinationIndex = i;<br>     rootIcon.gotoPage(destinationIndex);  <br>   break;<br>  } else {<br>    pageFound = "false";<br>  }<br>}</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">This will open up the potential to create a variety of "routed" pages which all use a standard method of page identification.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Kind regards</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Johnathan</span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">On 14 February 2012 09:50, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>> wrote:</span></p><div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Ah, the other gotcha is that those asfunc calls need the full path to the object.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" 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">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Ron Mitchell<br><b>Sent:</b> 14 February 2012 08:24<br><b>To:</b> 'For Xerte technical developers'</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><div><div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br><b>Subject:</b> [Xerte-dev] Re: navigating to page name</span></p></div></div></div></div><div><div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">:-)</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sleep worked!</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Got it working with _level0.engine.navToPage(pagetitletogoto);</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" 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">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 14 February 2012 00:43<br><b>To:</b> <a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a><br><b>Subject:</b> [Xerte-dev] Re: navigating to page name</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p></div></div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">So much for in vino veritas.</span></p><div><div style="margin-left:36.0pt"><div style="margin-left:36.0pt"><div style="margin-left:36.0pt"><div class="ecxMsoNormal" align="center" style="margin-left:36.0pt;text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><hr size="3" width="100%" align="center"></span></div></div></div></div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From: <a href="mailto:ronm@mitchellmedia.co.uk">ronm@mitchellmedia.co.uk</a><br>To: <a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a><br>Date: Tue, 14 Feb 2012 00:31:28 +0000<br>Subject: [Xerte-dev] Re: navigating to page name</span></p><div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for the suggestion Dave</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">but I've pretty much tried that but it's not working e.g. if I debug(myPageIndex); it's coming up undefined.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Time to shut down and have another look in the morning.</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Cheers</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Ron</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="ecxMsoNormal" 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">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> 14 February 2012 00:22<br><b>To:</b> <a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a><br><b>Subject:</b> [Xerte-dev] Re: navigating to page name</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""></span></p></div></div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br><a href="http://lists.nottingham.ac.uk/pipermail/xerte/2010-April/004972.html" target="_blank">http://lists.nottingham.ac.uk/pipermail/xerte/2010-April/004972.html</a> </span></p><div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">??</span></p></div><div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I've had a couple pints, so I may be missing the point.</span></p></div><div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">:-)</span></p></div><div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><div><div style="margin-left:36.0pt"><div style="margin-left:36.0pt"><div style="margin-left:36.0pt"><div class="ecxMsoNormal" align="center" style="margin-left:36.0pt;text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><hr size="3" width="100%" align="center"></span></div></div></div></div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From: <a href="mailto:ronm@mitchellmedia.co.uk">ronm@mitchellmedia.co.uk</a><br>To: <a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a><br>Date: Tue, 14 Feb 2012 00:10:31 +0000<br>Subject: [Xerte-dev] navigating to page name</span></p><div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Hi</span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I think I'm missing something silly here :-(</span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">In a script icon in a page templates project I want to dynamically pass a page title to navigate to that page.</span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">I know <a href="asfunction:_level0.engine.navToPage,yourpagetitle">Click here or some other wording</a> works in xot as a hyperlink but haven't managed to call the same function in a script icon?</span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Or is there another/easier way of doing this e.g. navigating to a page title in a page templates project?</span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Cheers</span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Ron</span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><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-dev mailing list <a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</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.</span></p></div></div></div></div><p class="ecxMsoNormal" style="margin-left:144.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>_______________________________________________ Xerte-dev mailing list <a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</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.</span></p></div></div></div></div></div></div><p class="ecxMsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><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.</span></p></div><p class="ecxMsoNormal" style="margin-left:108.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> </span></p></div><p class="ecxMsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>_______________________________________________ Xerte-dev mailing list Xerte-dev@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev 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.</span></p></div></div></div><br>_______________________________________________
Xerte-dev mailing list
Xerte-dev@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

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>                                         </div></body>
</html>