<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>You have to address the specific parent/sibling structure.<br>Julian was giving an example.<br><br>Look at the layout.<br><br><font style="font-size: 10pt;" face="Arial" size="2">icon.parentNode.getChildByName(“protoPage”).duplicate(templateData.presentation[0].page.length
- 1);</font><br><br>parentNode of makePages = Learning Object<br><br>Does Learning Object have a direct child called 'protoPage'? No.<br><br>Try this:<br><br>icon.nextSibling.getChildByName('protoPage').duplicate(templateData.presentation[0].page.length - 1);<br><br>Because the makePages nextSibling (Interface) has a direct child named protoPage<br><br>So your pages will be duplicated. But other things will appear undefined as they are also making relative position assumptions that no longer hold.<br><br>Dave<br><br><br><br><hr id="stopSpelling">From: patricia@e-w-i.nl<br>To: xerte@lists.nottingham.ac.uk<br>Date: Mon, 4 Apr 2011 13:17:29 +0200<br>Subject: [Xerte] Re: simple presentation<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.ecxecxemailstyle20
{;}
.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.ecxecxemailstyle201
{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><font face="Arial" size="2">Thank you, but still it doesn't work.</font></div>
<div><font face="Arial" size="2">I tried both in the origanal template without the
entryframe: </font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">icon.parentnode.getChildByID("proto").duplicate(templateData.presentation[0].page.length
- 1); (I gave the icon an ID
"proto"<br>icon.parentNode.getChildByName(“protoPage”).duplicate(templateData.presentation[0].page.length
- 1);</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">
</font><div><font face="Arial" size="2"><font face="Arial" size="2">I only get the first page with correct text. But
there are 3 pages.</font></font></div>
<div><font face="Arial" size="2">:(<br></font></div></div><font face="Arial" size="2"></font>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; padding-right: 0px; margin-left: 5px; margin-right: 0px;">
<div style="font: 10pt arial;">----- Original Message ----- </div>
<div style="font: 10pt arial; background: none repeat scroll 0% 0% rgb(228, 228, 228);"><b>From:</b>
<a title="Julian.Tenney@nottingham.ac.uk" href="mailto:Julian.Tenney@nottingham.ac.uk">Julian Tenney</a> </div>
<div style="font: 10pt arial;"><b>To:</b> <a title="xerte@lists.nottingham.ac.uk" href="mailto:xerte@lists.nottingham.ac.uk">Xerte discussion list</a> </div>
<div style="font: 10pt arial;"><b>Sent:</b> Monday, April 04, 2011 12:16
PM</div>
<div style="font: 10pt arial;"><b>Subject:</b> [Xerte] Re: simple
presentation</div>
<div><br></div>
<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;">You
can also use getChildByID()</span></p>
<p class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;"> </span></p>
<p class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;">;-)</span></p>
<p class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;"> </span></p>
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p style="margin-left: 36pt;" class="ecxMsoNormal"><b><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;" lang="EN-US"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave
Burnett<br><b>Sent:</b> 04 April 2011 11:15<br><b>To:</b> Xerte
list<br><b>Subject:</b> [Xerte] Re: simple
presentation</span></p></div></div>
<p style="margin-left: 36pt;" class="ecxMsoNormal"> </p>
<p style="margin-bottom: 12pt; margin-left: 36pt; margin-right: 0cm;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;">And then make sure
not to change any names. ;-)<br><br></span></p>
<div style="text-align: center; margin-left: 36pt;" class="ecxMsoNormal" align="center"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;">
<hr id="ecxstopSpelling" align="center" width="100%" size="2">
</span></div>
<p style="margin-bottom: 12pt; margin-left: 36pt; margin-right: 0cm;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;">From: <a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a><br>To:
<a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>Date:
Mon, 4 Apr 2011 10:22:32 +0100<br>Subject: [Xerte] Re: simple
presentation</span></p>
<div>
<p style="margin-left: 36pt;" class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;">Use
getChildByName() to avoid having to know the structure / number of
children.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p>
<p style="margin-left: 36pt;" class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p>
<p style="margin-left: 36pt;" class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;">Much
better to say icon.parentNode.getChildByName(“myProtoPageName”) than to say
icon.nextSibling() etc where if the structure changes, so does your
code,</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p>
<p style="margin-left: 36pt;" class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p>
<p style="margin-left: 36pt;" class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;">J</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p>
<p style="margin-left: 36pt;" class="ecxMsoNormal"><span style="font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125); font-size: 11pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p>
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: windowtext -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p style="margin-left: 72pt;" class="ecxMsoNormal"><b><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;" lang="EN-US">
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Patricia
Heijmen<br><b>Sent:</b> 04 April 2011 09:10<br><b>To:</b> Xerte discussion
list<br><b>Subject:</b> [Xerte] Re: simple presentation</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div></div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Thank you
Dave,</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">I am a bit further
now. But still have some trouble.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Now I have
:</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">the make pages
icon, then the interface icon, the interface icon contains an entry frame, and
the protopage. So I addes only an entry frame.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">I made 3 pages with
the template</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">I changed the code
in the makepagesicon into: </span></em><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">icon.nextSibling.</span></em><strong><i><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">childNodes[2].</span></i></strong><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">duplicate(templateData.presentation[0].page.length
- 1);</span></em><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">icon.nextSibling.attributes.title
= templateData.presentation[0].name;</span></em><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">//set the page
titles</span></em><i><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"><br><em><span style="font-family: 'Arial','sans-serif';">for (i = 0; i <
templateData.presentation[0].page.length; i++){</span></em><br><em><span style="font-family: 'Arial','sans-serif';">
icon.nextSibling.childNodes[i].attributes.title =
templateData.presentation[0].page[i].name;</span></em><br><em><span style="font-family: 'Arial','sans-serif';">}</span></em></span></i><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">If I preview the
presentation and I got only one page: Page 2. It contains the right text
and picture but there should be 3 pages.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Then I
changed </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">icon.nextSibling.</span></em><strong><i><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">childNodes[2].</span></i></strong><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">duplicate(templateData.presentation[0].page.length
- 1); </span></em><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">into </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">icon.nextSibling.</span></em><strong><i><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">childNodes[1].</span></i></strong><em><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">duplicate(templateData.presentation[0].page.length
- 1);</span></em><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Then with
previewing I got 3 pages, it doesn't show page 1, then it shows
page 2 and 3 (with correct pictures and text) and then it shows a page
undefined.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">I should think
<strong><span style="font-family: 'Arial','sans-serif';">icon.nextSibling.childNodes[2]</span></strong>
is the protoPage? But why doesn't that work? and why do I get some result
with <em><span style="font-family: 'Arial','sans-serif';">icon.nextSibling.</span></em><strong><i><span style="font-family: 'Arial','sans-serif';">childNodes[1]</span></i></strong><em><span style="font-family: 'Arial','sans-serif';">?</span></em> And why I don't get
page 1 then?</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Patricia</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div></div>
<blockquote style="border-width: medium medium medium 1.5pt; border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color windowtext; padding: 0cm 0cm 0cm 4pt;">
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">----- Original
Message ----- </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="background: none repeat scroll 0% 0% rgb(228, 228, 228); margin-left: 72pt;" class="ecxMsoNormal"><b><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">From:</span></b><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> <a title="d_b_burnett@hotmail.com" href="mailto:d_b_burnett@hotmail.com">Dave
Burnett</a> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><b><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">To:</span></b><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> <a title="xerte@lists.nottingham.ac.uk" href="mailto:xerte@lists.nottingham.ac.uk">Xerte list</a> </span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><b><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Sent:</span></b><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> Friday, April
01, 2011 8:21 PM</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><b><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Subject:</span></b><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;"> [Xerte] Re:
simple presentation</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<p style="margin-bottom: 12pt; margin-left: 72pt; margin-right: 0cm;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"><br>You have to
be very careful around template architecture.<br><br>You see the script icon
above the Interface icon called makePages?<br>Open it up and look at the
first line of
code.<br><br>icon.nextSibling.firstChild.duplicate(templateData.presentation[0].page.length
- 1);<br><br>That is making the pages of your presentation:<br><br>icon =
here, this icon<br>nextSibling = next icon downward<br>firstChild = next
icon rightward<br>duplicate = duplicate<br><br>So it is saying, duplicate
the protoPage icon x number of times.<br><br>When you insert your entry pane
on to the Interface page, you have inserted a sibling between makePages and
the target, protoPage.<br>So the relative logic is destroyed and the piece
is not being built.<br><br>You would have to adjust all the relative
references in the piece to take into account the added entrypane
icon.<br><br>HTH<br>Dave<br><br><br><br><br><br><br><br><br><br><br></span></p>
<div style="margin-left: 36pt;">
<div style="text-align: center; margin-left: 36pt;" class="ecxMsoNormal" align="center"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;">
<hr align="center" width="100%" size="2">
</span></div></div>
<p style="margin-bottom: 12pt; margin-left: 72pt; margin-right: 0cm;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;">From:
patricia@e-w-i.nl<br>To: xerte@lists.nottingham.ac.uk<br>Date: Fri, 1 Apr
2011 18:23:44 +0200<br>Subject: [Xerte] simple
presentation</span></p>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Hi, I am very new
in Xerte.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">I am trying to
understand the simple presentation template.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">I would like
to ad an entry frame to the interface icon and then add som cusom
buttons.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">However, when
I insert an entry frame, the application doesn't work correctly
anymore. The text icon shows 'undefined' and I cannot go through the
pages.</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">What I am doing
wrong?</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"> </span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Thanks for any
help</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Arial','sans-serif'; font-size: 10pt;">Patricia</span><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"></span></p></div>
<p style="margin-left: 72pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"><br>This message
and any attachment are intended solely for the addressee and may contain
confidential information. If you have received this message in error, please
send it back to me, and immediately delete it. Please do not use, copy or
disclose the information contained in this message or in any attachment. Any
views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham. <br>This message has been
checked for viruses but the contents of an attachment may still contain
software viruses which could damage your computer system: you are advised to
perform your own checks. Email communications with the University of
Nottingham may be monitored as permitted by UK legislation.
<br><br>_______________________________________________ Xerte mailing list
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any
attachment are intended solely for the addressee and may contain
confidential information. If you have received this message in error, please
send it back to me, and immediately delete it. Please do not use, copy or
disclose the information contained in this message or in any attachment. Any
views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham. This message has been
checked for viruses but the contents of an attachment may still contain
software viruses which could damage your computer system: you are advised to
perform your own checks. Email communications with the University of
Nottingham may be monitored as permitted by UK legislation.
</span></p>
<div style="margin-left: 36pt;">
<div style="text-align: center; margin-left: 36pt;" class="ecxMsoNormal" align="center"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;">
<hr align="center" width="100%" size="2">
</span></div></div>
<p style="margin-bottom: 12pt; margin-left: 72pt; margin-right: 0cm;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;">_______________________________________________<br>Xerte
mailing
list<br>Xerte@lists.nottingham.ac.uk<br>http://lists.nottingham.ac.uk/mailman/listinfo/xerte<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></blockquote></div>
<p style="margin-left: 36pt;" class="ecxMsoNormal"><span style="font-family: 'Tahoma','sans-serif'; font-size: 10pt;"><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. </span></p></div>
<BR><hr>
<BR>_______________________________________________<br>Xerte mailing
list<br>Xerte@lists.nottingham.ac.uk<br>http://lists.nottingham.ac.uk/mailman/listinfo/xerte<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></blockquote>
<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>