<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: [Xerte] Button to navigate to new page</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2>Just to add to your ideas here.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2>myPageName = "Something wonderful";</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2>myPageXML =
rootIcon.XMLElement.getChildByName(myPageName);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2>myPageIndex = myPageXML.index();</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=988280914-09092009><FONT face=Arial
color=#0000ff size=2>rootIcon.gotoPage(myPageIndex);</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=988280914-09092009><FONT face=Arial color=#0000ff size=2>Hope
this helps</FONT></SPAN></DIV>
<DIV><SPAN class=988280914-09092009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=988280914-09092009><FONT face=Arial color=#0000ff size=2>Kind
regards</FONT></SPAN></DIV>
<DIV><SPAN class=988280914-09092009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=988280914-09092009><FONT face=Arial color=#0000ff
size=2>Johnathan</FONT></SPAN></DIV>
<P><FONT face=Arial size=2>Johnathan Kemp<BR>ICT Development
Coordinator<BR>Connexions Staffordshire<BR></FONT><A
href="http://www.cxstaffs.co.uk/"><FONT face=Arial
size=2>www.cxstaffs.co.uk</FONT></A><BR><FONT face=Arial size=2>01785
355714<BR></FONT></P>
<P> </P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Sreeram
CA<BR><B>Sent:</B> 09 September 2009 11:35<BR><B>To:</B> Xerte discussion
list<BR><B>Subject:</B> RE: [Xerte] Button to navigate to new
page<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>Hi</FONT></SPAN><SPAN
lang=en-us><FONT face=Consolas> Stefan,</FONT></SPAN><SPAN
lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>If you purpose is to navigate to
different pages at a click of a button, it is very simple.
</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>1. create a
button</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>2. add script icon to
that</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>3. inside the script just
say</FONT></SPAN><SPAN lang=en-us><FONT face=Consolas>
rootIcon.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us> <FONT
face=Consolas>prevPage() - to go to previous page</FONT></SPAN></P>
<P dir=ltr><SPAN
lang=en-us> </SPAN><SPAN lang=en-us>
<FONT face=Consolas>nextPage() - to go to next page</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us> <FONT
face=Consolas>lastPage() - to last page</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us> <FONT
face=Consolas>firstPage() - to fist page</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us> <FONT
face=Consolas>gotoPage(pagenumber - 1)</FONT></SPAN><SPAN lang=en-us> <FONT
face=Consolas>to navigate to</FONT></SPAN><SPAN lang=en-us><FONT face=Consolas>
particular page</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>If you put this as part of entry
frame then these buttons would be available for all the</FONT></SPAN><SPAN
lang=en-us> <FONT face=Consolas>pages.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>Regards,</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>Sreeram C A</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>-----Original
Message-----<BR>From: xerte-bounces@lists.nottingham.ac.uk [<A
href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>]
On Behalf Of Stefan Van der Vyver<BR>Sent: Wednesday, September 09, 2009 5:37
PM<BR>To: Xerte discussion list<BR>Subject: [Xerte] Button to navigate to new
page</FONT></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>Hi there</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>I can read and understand html
and xml programming, but not write the </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>xml from scratch. I am using the
Xerte standalone template to build </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>e-lessons.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>Can someone please explain to me
how to add buttons (or clickable icon) </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>to a page in Xerte and use html
to link to another page? I would like </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>to make the lesson flow
non-linear. I realize that working with the </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>template might make this much
more difficult, but then I'll learn and </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>confirm that as a
consequence.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>I've been following the
discussion list and I've read that it is </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>possible to access pages with an
<a href> tag based on the page title.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>What would really help is a
walkthrough document. I'm willing to make </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>such and contribute to the
knowledge base if someone could assist me.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>Thank you</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>Stefan</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT
face=Consolas>_______________________________________________</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas>Xerte mailing
list</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT
face=Consolas>Xerte@lists.nottingham.ac.uk</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Consolas><A
href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A></FONT></SPAN></P><PRE>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@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.
</PRE><div align=\"center\" style=\"font-family:verdana; font-size:10px;\"><hr width=\"100%\">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@cxstaffs.co.uk
Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX</div></body></HTML>