[Xerte-dev] Re: Proof of concept test

Pat Lockley patrick.lockley at googlemail.com
Wed May 9 10:31:08 BST 2012


there is link_id code in toolkits - I am not sure how you activate it,
but the code is there

On Wed, May 9, 2012 at 10:26 AM, Julian Tenney
<Julian.Tenney at nottingham.ac.uk> wrote:
> This is OK if you have a page with an ID you want to link to, and you know
> that ID, but it won’t support users creating links to *any* page. That’s
> what the generated pageID in toolkits is for, and we wanted to make it
> possible for an end user to be able to link directly to any page: for some
> reason Pat and I backed away from making it work, for a reason that escapes
> me now. So I’m not sure about this: we don’t want to implement two different
> routing solutions, and if we implement one, I want it to be one that end
> users can use on any page.
>
>
> To be honest, I think we should leave this for the future. There’s still a
> lot to do to  tie off the release, and we can’t just keep adding to the list
> of new features: I’m approaching the ‘code lock’ stage in my head, and think
> we should concentrate on what we’ve got, and not add anything new now, we
> need to get this finished and done.
>
>
>
> From: xerte-dev-bounces at lists.nottingham.ac.uk
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp
> Johnathan
> Sent: 04 May 2012 22:36
> To: Xerte Developers Discussion List
> Subject: [Xerte-dev] Proof of concept test
>
>
>
> Hello Everyone,
>
>
>
> I have been working (between beta version stuff) on a means of making it
> possible to open a Xerte project at a specific page, rather than always have
> them open at the title page.
>
>
>
> Attached is a simple 3 page desktop Xerte project as a proof of concept.
>
>
>
> Do not open it in Xerte (at least until you have finished testing it!) If
> you publish the project, in Xerte, your local copy of rloObject.js will
> overwrite the one in the project and the code that supports the redirection
> will be lost.
>
>
>
> Would you mind unzipping it and then opening index.htm in a web browser -
> not Xerte.
>
>
>
> For it to work you will need to set up the folder in which you place it as a
> trusted location in the Flash player settings (otherwise javascript calls
> will not work).
>
>
>
> It should open at a title page.
>
>
>
> Then add to the url in your browser
>
>
>
> ?pageID=menu
>
>
>
> and press enter to reload the page.
>
>
>
> After a short delay the project should redirect from the title page to the
> menu page.
>
>
>
> I have tested this in Firefox, IE8, and Opera.
>
>
>
> If anyone has other browsers at their disposal I would be keen to know if
> the redirection works. e.g. Chrome, Safari,
>
>
>
> Should you examine the project the key stuff that makes it work is a
> function at the end of rlsObject.js and some code running off the
> onInitHandler interaction in the entry frame. Because rootIcon.pages.length
> has not finished being built when the onInit event fires I have added a
> timer to create a delay to allow time for the array to be built - hence the
> delay before redirection takes place.
>
>
>
> Should this prove reliable in your testing I believe the same approach
> should be applicable to XOT (albeit using a different array to source the
> page information)
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
>
>
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do not
> use, copy or disclose the information contained in this message or in any
> attachment.  Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>



More information about the Xerte-dev mailing list