<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText48121 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I usually give the framework the ID currentFWID, which tells me what the current framework is. Then in the rootIcon entry frame, I can always call currentFWID.nextPage(); when I click a button. It doesn't matter which page I am on.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I can have many pages at the top level, each containing a fw whose ID is currentFWID, so no need to write different code each time.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT><BR> </DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Peter Huppertz<BR><B>Sent:</B> Thu 29/01/2009 19:58<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] How to get the actual node/icon in an event script<BR></FONT><BR></DIV></DIV>
<DIV><FONT face=sans-serif size=2>Hi Julian,</FONT> <BR><BR><FONT face=sans-serif size=2>thanks for your response. Perhaps my question was not clear enough. What I want to do is to make a generic onRelease event for my next button in the entry frame. On the top level this is rootIcon.nextPage(), in a framework it is frameworkID.nextPage(), in a decision it is decisionID.nextPage(). That is clear. Now I'm looking for a possibility to tell my generic onRelease what the correct scope is. At the moment I use a variable actualLevel which stores the scope of nextPage() (e.g. I set actualLevel = decision1 so actualLevel.nextPage() calls the next page in the decision). So for every decision/framework I integrate I have to make a script which fills in the actual level variable correctly with the id of the decision/framework. Is there an easier way to do this (I tried to use this._parent instead of the ID, but this._parent is always _level0) ?</FONT> <BR><FONT face=sans-serif size=2>Thanks for you patience.</FONT> <BR><BR><FONT face=sans-serif size=2>Peter</FONT> <BR><BR><FONT face=sans-serif size=2>==================================<BR>Peter Huppertz<BR>E-learning and IT Specialist<BR>International Centre for Asset Recovery<BR>Basel Institute on Governance<BR>Phone: +41 61 205 55 18<BR>Fax: +41 61 267 55 19</FONT> <BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>From:</FONT>
<TD><FONT face=sans-serif size=1>Julian Tenney <Julian.Tenney@nottingham.ac.uk></FONT>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>To:</FONT>
<TD><FONT face=sans-serif size=1>"Xerte discussion list" <xerte@lists.nottingham.ac.uk></FONT>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>Date:</FONT>
<TD><FONT face=sans-serif size=1>01/29/2009 06:03 PM</FONT>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>Subject:</FONT>
<TD><FONT face=sans-serif size=1>RE: [Xerte] How to get the actual node/icon in an event script</FONT>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>Sent by:</FONT>
<TD><FONT face=sans-serif size=1>xerte-bounces@lists.nottingham.ac.uk</FONT></TD></TR></TBODY></TABLE><BR>
<HR noShade>
<BR><BR><BR><FONT face=Arial size=2>iconID.nextPage(), where iconID is the id of the decision icon, not the page icons.</FONT> <BR><FONT size=3><BR></FONT>
<HR>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Peter Huppertz<B><BR>Sent:</B> Thu 29/01/2009 13:51<B><BR>To:</B> xerte@lists.nottingham.ac.uk<B><BR>Subject:</B> [Xerte] How to get the actual node/icon in an event script</FONT><FONT size=3><BR></FONT><BR><FONT face=sans-serif size=2>Dear list,</FONT><FONT size=3> <BR></FONT><FONT face=sans-serif size=2><BR>I have a Xerte piece which has different levels of pages using decision icons. I implemented a navigation in an entry frame that just calls rootIcon.nextPage() when the next button is clicked. This works fine for the navigation on the top level but fails obviously for subpages of a decision icon (instead of the next page in the decision icon the next top level page is opened). I think I have to replace rootIcon with the actual (sub-)page I'm on, but can't figure out, how to do that without a lot of hassle (e.g. implementing a script on every page which stores the actual page reference in a variable).</FONT><FONT size=3> <BR></FONT><FONT face=sans-serif size=2><BR>Peter</FONT><FONT size=3> <BR></FONT><FONT face=sans-serif size=2><BR>==================================<BR>Peter Huppertz<BR>E-learning and IT Specialist<BR>International Centre for Asset Recovery<BR>Basel Institute on Governance<BR>Phone: +41 61 205 55 18<BR>Fax: +41 61 267 55 19</FONT><TT><FONT size=2>_______________________________________________<BR>Xerte mailing list<BR>Xerte@lists.nottingham.ac.uk<BR></FONT></TT><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte"><TT><FONT size=2>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</FONT></TT></A><TT><FONT size=2><BR></FONT></TT><BR><BR></DIV></BODY></HTML>