[Xerte] Getting current page Id
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Tue Jan 5 15:14:22 GMT 2010
Why do you need the id? Don't you just need a reference to the page
itself?
Use the fw.pages[fw.pages.length - 1] for the past page;
J
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Fred Riley
Sent: Tuesday, January 05, 2010 3:12 PM
To: Xerte discussion list
Subject: [Xerte] Getting current page Id
Hi all
Two related questions:
1. How do I get the id property of the current page from a script icon?
I'm guessing something like this.id or this.icon.id but I can't figure
the best search term for the help file.
2. Can I detect the last page in a framework? I'm after something like
the following for a Next button:
if (current page = last page) {
go to main menu
}
else {
go to next page (in framework)
}
I'm currently using Xerte 2.5.4 (yeah, I know, just call me diplodocus
;)).
Mercy buckets in anticipation :o)
Cheers
Fred Riley
Learning Technologist
School of Nursing, Midwifery and Physiotherapy, University of Nottingham
Vcard: http://www.nottingham.ac.uk/nursing/sonet/about/fr_uon.vcf
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
More information about the Xerte
mailing list