<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" 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 Dave,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I am a bit further now. But still have some
trouble.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Now I have :</FONT></DIV>
<DIV><FONT face=Arial>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.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I made 3 pages with the template</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial><EM>I changed the code in the makepagesicon into:
</EM></FONT></DIV>
<DIV><FONT face=Arial><EM></EM></FONT> </DIV>
<DIV><FONT
face=Arial><EM>icon.nextSibling.<STRONG>childNodes[2].</STRONG>duplicate(templateData.presentation[0].page.length
- 1);</EM></FONT></DIV>
<DIV><FONT face=Arial><EM></EM></FONT> </DIV>
<DIV><FONT face=Arial><EM>icon.nextSibling.attributes.title =
templateData.presentation[0].name;</EM></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial><EM>//set the page titles<BR>for (i = 0; i <
templateData.presentation[0].page.length; i++){<BR>
icon.nextSibling.childNodes[i].attributes.title =
templateData.presentation[0].page[i].name;<BR>}</EM></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>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.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Then I changed
<DIV><FONT
face=Arial><EM>icon.nextSibling.<STRONG>childNodes[2].</STRONG>duplicate(templateData.presentation[0].page.length
- 1); </EM></FONT></DIV>
<DIV><FONT face=Arial>into </DIV>
<DIV><FONT
face=Arial><EM>icon.nextSibling.<STRONG>childNodes[1].</STRONG>duplicate(templateData.presentation[0].page.length
- 1);</EM></FONT></DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>I should think <STRONG>icon.nextSibling.childNodes[2]</STRONG> is the
protoPage? But why doesn't that work? and why do I get some result
with <EM>icon.nextSibling.<STRONG>childNodes[1]</STRONG>?</EM> And why I
don't get page 1 then?</DIV>
<DIV> </DIV>
<DIV>Patricia</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></FONT></FONT><FONT face=Arial></FONT> </DIV></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> Friday, April 01, 2011 8:21
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Xerte] Re: simple
presentation</DIV>
<DIV><FONT face=Arial></FONT><BR></DIV><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><BR><BR>
<HR id=stopSpelling>
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<BR><BR>
<META name=Generator content="Microsoft SafeHTML">
<STYLE>
</STYLE>
<DIV><FONT size=2 face=Arial>Hi, I am very new in Xerte.</FONT></DIV>
<DIV><FONT size=2 face=Arial>I am trying to understand the simple presentation
template.</FONT></DIV>
<DIV><FONT size=2 face=Arial>I would like to ad an entry frame to
the interface icon and then add som cusom buttons.</FONT></DIV>
<DIV><FONT size=2 face=Arial>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.</FONT></DIV>
<DIV><FONT size=2 face=Arial>What I am doing wrong?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks for any help</FONT></DIV>
<DIV><FONT size=2 face=Arial>Patricia</FONT></DIV><BR>This message and any
attachment are intended solely for the addressee and may contain confidential
information. If you have received this message in error, please send it back
to me, and immediately delete it. Please do not use, copy or disclose the
information contained in this message or in any attachment. Any views or
opinions expressed by the author of this email do not necessarily reflect the
views of the University of Nottingham. <BR>This message has been checked for
viruses but the contents of an attachment may still contain software viruses
which could damage your computer system: you are advised to perform your own
checks. Email communications with the University of Nottingham may be
monitored as permitted by UK legislation.
<BR><BR>_______________________________________________ Xerte mailing list
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>