[Xerte] Current Page
Julian.Tenney at nottingham.ac.uk
Thu Oct 15 10:53:11 BST 2009
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Thursday, October 15, 2009 10:54 AM
To: 'Xerte discussion list'
Subject: [Xerte] Current Page
In .rlt we have an event handler for onOpenPage.
We need to know the "current page" that we are on so that we can update
page titles and a progress bar. We currently have:
extXML.firstChild.childNodes[rootIcon.getPageIndex()] which is always
returning "0" or the first page...
How do we extract the current page number? Or current XML generated page
that is being displayed? (from template.xml)
We can get the total number of pages (childNodes) from
extXML.firstChild.childNodes.length but not the current page being
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xerte