[Xerte] Current Page

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Oct 8 16:33:31 BST 2009


You might need to get it from the xml - it's done somewhere in the oce,
to get the apge title and display it - maybe in the onPageOpen event
handler?

 

pageIcon = icon.parentNode.clip(); //the page

myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() -
pgOffset]); //the xml for this page

pageIcon.templateData = myXML.toObject();

 

so 

 

myXML.attributes.name

 

??

 

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Thursday, October 08, 2009 4:15 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Current Page

 

Yeah that gets me into the xml file but  I want to read the element for
the current page...  tried templateData.learningObject[currentPage].name

 

But no joy

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 08 October 2009 15:16
To: Xerte discussion list
Subject: RE: [Xerte] Current Page

 

templateData.learningObject[0].title

 

??

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Thursday, October 08, 2009 2:22 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Current Page

 

I'm after the "name" attribute in the template.xml (with the
<learningObject></learningObject> in it)

 

Problem is, I want to get that data for the current page that the lesson
is on...

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 08 October 2009 13:27
To: Xerte discussion list
Subject: RE: [Xerte] Current Page

 

Icon.parentNode.XMLElement.attributes.name from a script in the page...?

 

But really you want information from the wizard's xml file, surely?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Thursday, October 08, 2009 1:27 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Current Page

 

Tried:

 

rootIcon.currentPage.XMLElement.attributes.name

rootIcon.currentPage.XMLElement. name

rootIcon.XMLElement[currentPage].name

rootIcon.XMLElement.currentPage.name 

 

No joy...

 

I'm doing it in Wizards...

 

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 08 October 2009 11:51
To: Xerte discussion list
Subject: RE: [Xerte] Current Page

 

Maybe via XMLElement?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Thursday, October 08, 2009 11:04 AM
To: 'Xerte discussion list'
Subject: [Xerte] Current Page

 

Is there a way I can get info about the current page in Xerte?

 

Thought I had used something like it before, like
rootIcon.currentPage.name or something?

 

Thanks,

 

P

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


More information about the Xerte mailing list