[Xerte] Current Page

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Oct 15 10:53:11 BST 2009


rootIcon.currentPage

 

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
displayed. 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091015/6dbdb75e/attachment.html


More information about the Xerte mailing list