<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
All very useful, but why is something that shows up in debug as the correct value not be evaluated by the statement?<br><br>I tried to use the sequence you described:<br><br><p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">currentFW.nextPage() and currentFW.prevPage()</span></p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">As you pass into various sub FWs, in their entry frames do currentFW = whatever this FW is;</span></p><br>How does mine differ:<br><br>cur_fw_id = icon.parentNode.parentNode.attributes.id; // in SCR in FW_ENT<br><br>//In previous button<br>debug(cur_fw_id); //shows correct id of i65777<br>cur_fw_id.prevPage(); //does nothing<br><br>If I put the actual value in:<br>165777.prevPage(); //works fine<br><br><br><br><br><hr id="stopSpelling">Subject: RE: [Xerte] Controlling Nav buttons<br>Date: Fri, 20 Nov 2009 22:21:41 +0000<br>From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
<div id="ecxidOWAReplyText23653" dir="ltr">
<div dir="ltr"><font size="2" color="#000000" face="Arial">icon //is an XMLNode</font></div>
<div dir="ltr">icon.parentNode;//is its parent XMLNode</div>
<div dir="ltr">icon.parentNode.clip() //gives you the movieclip instantiated from that node;</div>
<div dir="ltr"> </div>
<div dir="ltr">clip() is a method that all XMLNodes get - here are some other useful ones like findChildByName(), findParentByID() - see the help.</div></div>
<div dir="ltr"><br>
<hr>
<font size="2" face="Tahoma"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk on behalf of Dave Burnett<br><b>Sent:</b> Fri 20/11/2009 19:14<br><b>To:</b> Xerte list<br><b>Subject:</b> RE: [Xerte] Controlling Nav buttons<br></font><br></div>
<div><br>Is there a trick I'm missing to pass the curr fw id variable into statements:<br><br>cur_fw_id = icon.parentNode.parentNode.attributes.id;<br>debug(cur_fw_id); //shoes correct id<br>cur_fw_id.prevPage(); //does nothing<br><br>If I put the actual value in:<br>165777.prevPage(); //works fine<br><br><br><br><br><br><br>
<hr id="ecxstopSpelling">
Subject: RE: [Xerte] Controlling Nav buttons<br>Date: Fri, 20 Nov 2009 16:17:08 +0000<br>From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk<br><br>
<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.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.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.ecxEmailStyle28
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</style>
<div class="ecxecxSection1">
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">You can use duplicates as longa s they aren’t on the stage together, so in different apges, yes you can.</span></p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Here’s what I like to do:</span></p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Add the back and next buttons in the main entry frame. In the scripts do</span></p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">currentFW.nextPage() and currentFW.prevPage()</span></p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">As you pass into various sub FWs, in their entry frames do currentFW = whatever this FW is;</span></p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Then you have one set of controls that can navigate lots of FWs.</span></p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<p class="ecxecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="ecxecxMsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> Friday, November 20, 2009 4:10 PM<br><b>To:</b> Xerte list<br><b>Subject:</b> RE: [Xerte] Controlling Nav buttons</span></p></div></div>
<p class="ecxecxMsoNormal" style="margin-left: 36pt;"> </p>
<p class="ecxecxMsoNormal" style="margin-bottom: 12pt; margin-left: 36pt; margin-right: 0cm;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Thanks Julian, I'll check out that handler for the implications.<br>If I give multiple RES items the same rs, does that set up a conflict, or will they all be affected the same? <br><br></span></p>
<div class="ecxecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">
<hr id="ecxecxstopSpelling" size="2" width="100%" align="center">
</span></div>
<p class="ecxecxMsoNormal" style="margin-bottom: 12pt; margin-left: 36pt; margin-right: 0cm;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Subject: RE: [Xerte] Controlling Nav buttons<br>Date: Fri, 20 Nov 2009 15:40:25 +0000<br>From: Julian.Tenney@nottingham.ac.uk<br>To: xerte@lists.nottingham.ac.uk</span></p>
<div>
<p class="ecxecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">In an onOpenPage event handler?</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="ecxecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span> </p>
<p class="ecxecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Or even in the button scripts…</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>
<p class="ecxecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span> </p>
<div>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="ecxecxMsoNormal" style="margin-left: 72pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br><b>Sent:</b> Friday, November 20, 2009 3:26 PM<br><b>To:</b> Xerte list<br><b>Subject:</b> [Xerte] Controlling Nav buttons</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p></div></div>
<p class="ecxecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span> </p>
<p class="ecxecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"><br>Now I have a handle on global navigation, on to local navigation.<br><br>I can see a few ways to do this, but is there a best practice for hiding/showing Next and Previous buttons in a classic page turner setup?<br><br>Giving the buttons in question an rs value and using the Visible property looks like the way to go, but where's the best place for the controlling code?<br><br>Cheers,<br><br>Dave </span></p>
<div style="margin-left: 36pt;">
<div class="ecxecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">
<hr size="2" width="100%" align="center">
</span></div></div>
<p class="ecxecxMsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Windows 7: It works the way you want. <a href="http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2">Learn more.</a></span></p></div>
<p class="ecxecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span> </p>
<div class="ecxecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">
<hr size="2" width="100%" align="center">
</span></div>
<p class="ecxecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Hotmail: Trusted email with powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/177141665/direct/01/">Sign up now.</a></span></p></div><br>
<hr>
Windows 7: I wanted simpler, now it's simpler. <a href="http://www.microsoft.com/Windows/windows-7/default.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:112009">I'm a rock star.</a> </div>                                            <br /><hr />Hotmail: Trusted email with powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/177141665/direct/01/' target='_new'>Sign up now.</a></body>
</html>