<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<STYLE>.hmmessage P {
PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
FONT-FAMILY: Tahoma; FONT-SIZE: 10pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19019"></HEAD>
<BODY class=hmmessage bgColor=#ffffff>
<DIV><FONT face=Arial>Thank you, thank you,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Now I understand. Now it works.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Best regards,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Patricia</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; 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: #e4e4e4; font-color: black"><B>From:</B>
<A title=d_b_burnett@hotmail.com href="mailto:d_b_burnett@hotmail.com">Dave
Burnett</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 list</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 04, 2011 1:31
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Xerte] Re: simple
presentation</DIV>
<DIV><BR></DIV><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" size=2
face=Arial>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 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 size=2 face=Arial>Thank you, but still it doesn't
work.</FONT></DIV>
<DIV><FONT size=2 face=Arial>I tried both in the origanal template without the
entryframe: </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2
face=Arial>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 size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT>
<DIV><FONT size=2 face=Arial><FONT size=2 face=Arial>I only get the first page
with correct text. But there are 3 pages.</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial>:(<BR></FONT></DIV></DIV><FONT size=2
face=Arial></FONT>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(0,0,0) 2px solid; 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: 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-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<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 SIZE=2 width="100%">
</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-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<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-BOTTOM: medium none; BORDER-LEFT: 1.5pt solid; PADDING-BOTTOM: 0cm; PADDING-LEFT: 4pt; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0cm">
<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: 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 SIZE=2 width="100%">
</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 SIZE=2 width="100%">
</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.
<P>
<HR>
<P></P>_______________________________________________<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></BODY></HTML>