[Xerte-dev] Re: New Youtube page

Kemp Johnathan johnathan.kemp at ntlworld.com
Wed May 2 11:03:39 BST 2012


The default introduction to the model files has changed with the latest set
of models.

if (extXML == undefined){
// Page Wizard
pageIcon.templateData = pageIcon.extXML.toObject();
pageIcon.templateData = pageIcon.templateData.pageWizard[0];
} else {
// Toolkits
myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() -
pgOffset]);
pageIcon.templateData = myXML.toObject();
rootIcon.setTitleText(templateData.learningObject[0].name);
}

new format

if (rootIcon.projMode == "dev"){
// Page Wizard
pageIcon.templateData = pageIcon.extXML.toObject();
pageIcon.templateData = pageIcon.templateData.pageWizard[0];
} else {
// Toolkits
myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() -
pgOffset]);
pageIcon.templateData = myXML.toObject();

}
rootIcon.setTitleText(templateData.learningObject[0].name);

// handle multiple page data definitions in a project
if (rootIcon.projectPageIndex == undefined){
rootIcon.projectPageIndex = 0;
}
// check if this page has a definition for the current project index and
default to 0 if not
if (pageIcon.templateData.bullets[rootIcon.projectPageIndex].name ==
undefined){
projPI = 0;
} else {
projPI = rootIcon.projectPageIndex;
}

if (pageIcon.templateData.bullets[projPI].delaySecs != undefined){

The new pages project type in desktop Xerte now has an xwd and xml file
giving the author xwd form based control over many of the project settings.
This results in the existence of "extXML" thus making the original test for
the desktop environment invalid. After much testing I ended up setting a
variable in the setup script of the project, hence the new test. Not ideal.
I tried to find something that would work "out of the box" for the desktop
environment but was unable to do so. I tried using

if (_level0jumpData.fileType.toLowerCase() == ".rlo") {

but this worked in preview but not in published mode.

One upside of the changes was that for both environments the learning
object title can be set so the rootIcon.setTitle line has now been moved
outside of the test for the environment.

A further significant change in the model files is there to support the
capability in desktop Xerte to have multiple data definitions for a single
page. This addition is shown highlighted in green.

The addition of the "green" code block with the appropriate top element
name entry (highlighted in red) ensures that for XOT and pageTemplates
users the value "projPI" is always 0. For desktop Xerte users it will
default to 0 if the current value of rootIcon.projectPageIndex is
referencing a data set for the page that has not been defined.

References in the rest of the pages code that used to be of the form

pageIcon.templateData.bullets[0]

now become

pageIcon.templateData.bullets[projPI]

XOT and Page Templates are unaffected by this change, but Xerte desktop can
now leverage multiple data definitions per page.

If you wish, once you are happy with the way the two new you tube pages are
working I can make the necessary alterations.

Kind regards

Johnathan

On 2 May 2012 09:31, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:

> Do you get it in standalone xerte?
>
>
>
>
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Ron Mitchell
> *Sent:* 02 May 2012 08:55
>
> *To:* 'For Xerte technical developers'
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> Julian - thanks for making the thumb images clickable - works well.
>
>
>
> Not sure what the extent of the rogue scrollbar appearing is but I'll
> create a single page example and share via the lists and hopefully get
> other to respond to confirm whether they get this or not.
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Ron Mitchell
> *Sent:* 01 May 2012 14:19
> *To:* 'For Xerte technical developers'
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> Ok tested on another Windows 7 machine and I don't see the rogue scroll
> bar on that in any of the browsers.
>
>
>
> So that seems to rule out the difference between Windows 7 and XP being
> the problem.
>
>
>
> I have the same AV software including browser plug-ins on both machines so
> it's not that.
>
>
>
> I've deleted offline files in IE and tried again - same problem exists.
>
>
>
> Lost for ideas now but I have seen this previously on college machines etc
> and obviously someone reported it to Alistair too. Would be good if others
> here on this list could test and confirm either way?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Julian Tenney
> *Sent:* 01 May 2012 13:51
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> XP.
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Ron Mitchell
> *Sent:* 01 May 2012 13:51
> *To:* 'For Xerte technical developers'
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> That's weird - could it be flash player version or OS version or
> something? Are you on Win 7 or earlier?
>
>
>
> Got a skype call now but will test on a different machine later.
>
>
>
> Anyone else seeing or not seeing this?
>
>
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Julian Tenney
> *Sent:* 01 May 2012 13:40
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> No I’m not:
>
>
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Ron Mitchell
> *Sent:* 01 May 2012 13:35
> *To:* 'For Xerte technical developers'
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> No this is on the test server purely 1.8 code are you not seeing it on
> http://vle.jisctechdis.ac.uk/xot/play.php?template_id=22
>
>
>
> I get this on IE, Firefox, Safari and Chrome
>
>
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Julian Tenney
> *Sent:* 01 May 2012 13:16
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> I aint seein’ no scrollbar.
>
>
>
> This some third party thing you guys have installed?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Ron Mitchell
> *Sent:* 01 May 2012 13:13
> *To:* 'For Xerte technical developers'
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> Have uploaded. P60 of
> http://vle.jisctechdis.ac.uk/xot/play.php?template_id=22
>
>
>
> We've still got that rogue scrollbar to the left of the thumbnails which
> also affects the scrollbar for the thumbs.
>
>
>
> Can the thumbnails be active links as well as the text?
>
>
>
> In my IE8 the pop-up still isn't resizable but could just be specific to
> my laptop so would be good if others could test and feed back? Will test on
> IE9 too.
>
>
>
> HTH
>
> Ron
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Julian Tenney
> *Sent:* 01 May 2012 13:02
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> Just committed the feed page, it works the same way. I also changed the
> params in openWindow to allow the window to be resizable, and to get the
> focus when it’s made, so you don’t lose it. That’s in preview_xerte_top
> (which is in modules/xerte by the way as I can never find it…)
>
>
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Ron Mitchell
> *Sent:* 01 May 2012 12:39
> *To:* 'For Xerte technical developers'
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> It's in place now - page 61 and 62 of
> http://vle.jisctechdis.ac.uk/xot/play.php?template_id=22
>
>
>
> If you go through in linear order Page 61 comes up with an undefined but
> page 62 seems to work fine - not sure what the difference is but then if
> you go back to page 61 it pops up the video from page 62.
>
>
>
> Will the wizard have options to set pop-up window features such as
> resizable? In IE 8 the pop up isn't resizable but I think it should be or
> perhaps better still have control over than in the wizard. In Firefox and
> Safari I can resize the pop-up.
>
>
>
> Presumably this is grabbing the image automatically which is great? I
> don't think it's as nice as the current YouTube page but if that's going
> then I guess we have no choice. At least it means features such as captions
> and view full screen are available.
>
>
>
> How will the feed page work?
>
>
>
> HTH
>
> Ron
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Julian Tenney
> *Sent:* 01 May 2012 12:14
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> Sorry, I commited it to xerte. Just replace the one youtube.rlm file. Its
> in the XOT svn now as well.
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Ron Mitchell
> *Sent:* 01 May 2012 11:41
> *To:* 'For Xerte technical developers'
> *Subject:* [Xerte-dev] Re: New Youtube page
>
>
>
> Hi Julian
>
> did you commit to the XOT svn or just Xerte? Not showing up in the XOT svn
> that I've been using for the test install. Not sure if I can just grab the
> two files from the Xerte svn and just replace the files on the test install?
>
> Ron
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Julian Tenney
> *Sent:* 01 May 2012 11:29
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] New Youtube page
>
>
>
> I just committed a new version of the youtube page: it uses newWindow to
> launch the video. I tried doing the embed approach, but it’s gribbly: the
> movie hovers above the popup menus along the bottom, and moving to a new
> page left the screen black for a few seconds. So this way pops up a new
> window, but I think it’s the best we can do until we get the HTML5 stuff
> finished.
>
>
>
> If you could pop it in the demo please Ron, I’ll do the RSS one as well,
> but I’ll wait for any comments first.
>
>
>
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120502/35fe5f0c/attachment-0001.html>


More information about the Xerte-dev mailing list