[Xerte] Button to navigate to new page

Johnathan Kemp johnathan.kemp at cxstaffs.co.uk
Wed Sep 9 15:16:59 BST 2009


Just to add to your ideas here.
 
If you use a page's index number in a script this could change later on
if you add pages to the project, ahead of that page.
 
However you could identify the page you want to go to by its name, which
would not change even if extra pages were added or the page moved.
 
myPageName = "Something wonderful";
myPageXML = rootIcon.XMLElement.getChildByName(myPageName);
myPageIndex = myPageXML.index();
rootIcon.gotoPage(myPageIndex);
 
Hope this helps
 
Kind regards
 
Johnathan

Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/> 
01785 355714


 

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Sreeram CA
Sent: 09 September 2009 11:35
To: Xerte discussion list
Subject: RE: [Xerte] Button to navigate to new page



Hi Stefan,

If you purpose is to navigate to different pages at a click of a button,
it is very simple.  

1.  create a button

2.  add script icon to that

3.  inside the script just say rootIcon.

        prevPage() - to go to previous page

        nextPage() - to go to next page

        lastPage() - to last page

        firstPage() - to fist page

        gotoPage(pagenumber - 1) to navigate to particular page

If you put this as part of entry frame then these buttons would be
available for all the pages.

Regards,

Sreeram C A

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Stefan Van
der Vyver
Sent: Wednesday, September 09, 2009 5:37 PM
To: Xerte discussion list
Subject: [Xerte] Button to navigate to new page

Hi there

I can read and understand html and xml programming, but not write the 

xml from scratch. I am using the Xerte standalone template to build 

e-lessons.

Can someone please explain to me how to add buttons (or clickable icon) 

to a page in Xerte and use html to link to another page?  I would like 

to make the lesson flow non-linear. I realize that working with the 

template might make this much more difficult, but then I'll learn and 

confirm that as a consequence.

I've been following the discussion list and I've read that it is 

possible to access pages with an <a href> tag based on the page title.

What would really help is a walkthrough document. I'm willing to make 

such and contribute to the knowledge base if someone could assist me.

Thank you

Stefan

_______________________________________________

Xerte mailing list

Xerte at lists.nottingham.ac.uk

http://lists.nottingham.ac.uk/mailman/listinfo/xerte

DISCLAIMER: 

Information transmitted by this e-mail may be proprietary to Ramco
Systems Ltd., and / or the
authors of the information and is intended for use only by the
individual or entity to which it is
addressed, and may contain confidential or legally privileged
information. If you are not the 
intended recipient or it appears that this mail has been forwarded to
you without proper authority, 
you are not authorised to access, read, disclose, copy, use or otherwise
deal with it and any such 
actions are prohibited and may be unlawful. 

Internet communications cannot be guaranteed to be secure or error-free
as information could be 
intercepted, corrupted, lost, arrive late or contain viruses. Ramco
Systems Limited therefore does 
not accept liability for any errors, omissions, viruses or computer
problems experienced as a 
result of this transmission.

If you have received this e-mail in error, please notify us immediately
at 
mail to: mailadmin at rsi.ramco.com and delete this mail from your records.
Notice is hereby 
given that no representation, contract or other binding obligation shall
be created by this e-mail.
This email and any files transmitted with it are confidential and are intended solely for the use of the individual(s) or entity(s) to whom they are addressed. All messages are monitored for virus, high risk files and inappropriate content. As a result users should be aware that this mail maybe accessed, read and the right is reserved to reject, return, remove attachments or delete if considered to be inappropriate or unsuitable. Liability cannot be accepted for any loss or damage arising from this email (or any attachments) or from scripts or any virus transmitted.

This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Connexions Staffordshire. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately reply to the sender or notify postmaster at cxstaffs.co.uk


Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090909/09e5d674/attachment.html


More information about the Xerte mailing list