[Xerte] Getting current page Id

Fred Riley Fred.Riley at nottingham.ac.uk
Wed Jan 6 19:02:52 GMT 2010


Thanks, Julian
 
> Why do you need the id? Don't you just need a reference to 
> the page itself?

I don't - just a ref is fine, I just think in terms of IDs and handles. 
 
> Use the fw.pages[fw.pages.length - 1] for the past page;

Ok, that returns the index of the last page in a framework, which is
useful. What returns the index of the current page? The condition I'm
after is:

if current page = last page
	go to menu
else
	go to next page
endif

It'll be bleedin' obvious, I know it... :(

Cheers

Fred 


More information about the Xerte mailing list