[Xerte-dev] Re: Possible Issue (maybe) with Xenith.js
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Tue Jul 9 14:26:33 BST 2013
I think it might be the last one, but we really need Johnathan's input, because I don't think anyone knows how it works.
Johnathan..?
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 09 July 2013 13:58
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Possible Issue (maybe) with Xenith.js
Oh and meant to ask you Nikodem,
Do you have any plans to do the Scenario connector? Is that the last outstanding page type Julian - it's on my list (but really low on my priorities) but would be nice to draw a line under them...
Also I'd appreciate any feedback on the rendering of the Javascript engine in IE6/7/8/9/10 since my R1028 changes, or even just to test it on some more examples - you can use BrowserStack.com for any browsers that you don't have access to...
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 Smith, John
Sent: Tuesday, July 09, 2013 1:36 PM
To: xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>
Subject: [Xerte-dev] Possible Issue (maybe) with Xenith.js
Importance: High
Hi (this is probably for Nikodem),
I saw a console error in xenith.js yesterday when debugging a video issue from the Forum that I can't seem to reproduce (and can't even remember which browser it was in, perhaps a Mac or Linux on...) but it might be worth keeping an eye out for if you are developing any of the javascript engine...
>From memory, this code appeared to be the culprit (but as I say it's not doing it in Chrome or Firefox now after recent trunk updates) - Lines 145-160 R1031
if (x_pages.length < 2) {
// don't show navigation options if there's only one page
$("#x_footerBlock .x_floatRight").remove();
} else {
if (x_params.navigation == undefined) {
x_params.navigation = "Linear";
}
if (x_params.navigation != "Linear" && x_params.navigation != "Historic" && x_params.navigation != undefined) { // 1st page is menu
x_pages.splice(0, 0, "menu");
var page = new Object();
page.type = "menu";
page.built = false;
x_pageInfo.splice(0, 0, page);
}
}
Basically Fay added this code in to hide the navigation when there is only one page. However, it seems to me anyway that, when there's more than 1 template page the page object is created and page.type and page.built are set... these are then used later on... but they give an undefined console error when there is only one page as page hasn't been defined...
This is the last thing on my list before getting back to working on the API and making a proper start on the HTML5 editor so would appreciate it if you had time to take a quick look and see if you can reproduce and fix...
PS, Fay probably passed on the google doc bug/features sheets to you before she left. If you are planning to keep them relatively up to date with the Javascript engine developments then I will usually dip in there when I need a welcome break from PHP and give you a hand... alternatively if want a fresh pair of eyes casting over any code then just drop me an email on or off list...
Regards,
John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University
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
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130709/8df819e2/attachment.html>
More information about the Xerte-dev
mailing list