[Xerte-dev] Re: page linking via html5 playback

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Dec 13 13:26:28 GMT 2012


It's fixed now.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 13 December 2012 11:08
To: For Xerte technical developers
Subject: [Xerte-dev] Re: page linking via html5 playback

You will probably find that in historic navigation everything works OK as there is no menu page.

If you look at the code in the makePages script (the first child of the learning object in a pageTemplates project and presumably a XOT project) there is code that sets a value for pgOffset. pgOffset gets a value of 2 if there is a menu and 1 otherwise - to allow for the automatically generated menu page.

I use this value in the connector pages to calculate an offset for when menu navigation is used.

If I recall correctly there is a method to get the page index but this does not recognise the presence of the menu page but rootIcon.gotoPage does know about the menu page

so if you have navigation = menu on your learning object, and a project that has a title page, followed by a summary page

The method to get the page index returns 0 for the Title page and 1 for the summary page, but gotoPage(0) takes you to the menu page and gotoPage(1) takes you to the title page.

Kind regards

Johnathan


On 13 December 2012 09:19, Fay Cross <Fay.Cross at nottingham.ac.uk<mailto:Fay.Cross at nottingham.ac.uk>> wrote:
I've just found some problems with page linking in both Flash and html5.  They both work fine with Linear navigation but if it's menu navigation then in html the project won't load at all and in Flash the link always takes you to the page before it should (I guess it's not taking the menu page into account when getting the page index)

I'll have a look at fixing the html version now.

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John

Sent: 12 December 2012 11:54
To: For Xerte technical developers
Subject: [Xerte-dev] Re: page linking via html5 playback

Hi everyone,

I've just updated xenith.js to include code which should now convert the asfunction links within any of the fields currently supported by glossary tags (I pinched the code) into an x_navigateToPage(). This is also used when deep linking so can someone test on their live environments (or at least with real life data)..

Will be offline all afternoon (daughter's Nativity play) but back online in the evening...

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: Wednesday, December 12, 2012 9:51 AM
To: 'For Xerte technical developers'
Subject: [Xerte-dev] page linking via html5 playback

Hi
starting this as a new thread so we know it remains an issue to resolve. Don't think it should delay release of 1.9.

I'm sure we know this anyway but as a reminder -  the Page Link functionality works great via flash playback but when viewing the same LO via html 5 playback clicking that type of link results in a blank page as the url changes to something like asfunction:_level0.engine.rootIcon.pageLink,PG1355303464521

As a page link can be added to any page I guess there needs to be a shared function between all html 5 pages to detech that type of link and change it to a LinkID link.

Is that something you can resolve John?

Cheers
Ron


Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html




_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121213/57adae80/attachment-0001.html>


More information about the Xerte-dev mailing list