[Xerte-dev] Re: [Xerte] Re: Embed content page

Fay Cross Fay.Cross at nottingham.ac.uk
Thu Feb 2 12:15:48 GMT 2012


You are right that the one in the xot svn is the most up to date.
I thought I had uploaded the amended model to both but it seems to just be in the toolkits one (although strangely the old version in the xerte svn was uploaded more recently than the new version in the xot svn so maybe it's been overwritten at some point?) Anyway, I'll update the version in the xerte svn now.

The sizing of the window works ok in IE7 & Firefox8 but I admit I hadn't tested it in IE8 - I'll look into this.  Having said it works in my browsers there is a caveat to this that you mention - if you change window size while on the embed content page it won't resize the window until you navigate away from it and back again.  This is something I've wanted to get sorted for a while but haven't as yet had a chance - now that someone else has noticed I will get on with it!

Thanks for your testing and the attached files - I'll have a look at these in a sec



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 February 2012 11:54
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: [Xerte] Re: Embed content page

Hi all
firstly apologies for what will be a long message and also I decided it would be better to continue to discuss this on the dev list rather than the main list hope that's ok...

I'm a big fan of the embed content page because it addresses one of the barriers a lot of people come up with about not being able to embed their favourite web 2 sites/resources etc to big thanks to whoever contributed to this!

So anyway to continue this thread and Jonthan's tests I've been testing and comparing files and versions and I think Julian indicated the most up-to-date embedDiv.rlm is in the xerte svn rather than xot svn. However I could easily be wrong but from my tests I don't think that's the case. I'm assuming that the code in embedDiv.rlm and it's dependencies evolved since it was first added and I think at first the window size was fixed regardless of LO screen size setting and at some point Julian or Pat or someone else? improved this  so that the embed window reflected the LO screen size setting. From my tests this works great with one possible caveat that I'll cover below but first the difference between the current xerte embedDiv.rlm and the current XOT embedDiv.rlm. I think the latter is newer and the correct/best version and the crucial difference is shown in the attached txt file.

The other key issue from my tests is what happens when an XOT LO using the embed content or new window page is exported. Here's the result of my tests:

\website_code\php\scorm\scorm_library.php is what creates the index.htm which is part of the normal zip export

As far as I can tell it does this by opening \modules\xerte\player\rloObject.htm and renaming that as index.htm and adding to the zip

When exporting as scorm a similar thing happens but in this case it's \modules\xerte\scorm\scormRLO.htm that get's opened and made part of the exported zip

So at the moment when exporting from XOT as either normal zip or scorm zip the embed content and new window pages don't work because \modules\xerte\player\rloObject.htm and \modules\xerte\scorm\scormRLO.htm don't currently contain the relevant window code.

When previewing or playing via xot the embed content and new window pages work because the required window code is in \modules\xerte\preview_xerte_top

The quickest solution is to add the relevant code from \modules\xerte\preview_xerte_top to both \modules\xerte\player\rloObject.htm and \modules\xerte\scorm\scormRLO.htm These then get exported as part of the zip and include the code to make the pages work. As well as the window and div code there's a line towards the end of the files that also needs to be in place: <div id="popup_parent"/>

I've added the code to both these pages and tested and it seems to work fine. I could commit those changes to the XOT svn but have attached all the files here for Pat or someone else to check and verify before doing so. Especially in case I'm wrong about all this or if there are other versions/revisions flying around?

The one issue I have found with this and it may be unique to my IE 8 is that when first viewed the embed content page window isn't the correct size in IE when the default LO screen size is anything but fill window. However it works fine when the windows size is changed and it works fine regardless of LO screen size in Firefox and Safari. To test this view http://www.nottingham.ac.uk/toolkits/play_560 and use the toc to navigate to the embed content example on page 29. On my Windows 7 laptop it works fine in Firefox and Safari but in IE 8 the embed window is much larger than the default 800 x 600 LO until changing the screen size option and then navigating away from and back to that page. Is it the same for you in IE? Is there a fix? Before someone says it a fix other than "don't use IE!" ;-)

HTH
Ron





From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 31 January 2012 14:04
To: Xerte discussion list
Subject: [Xerte] Re: Embed content page

I have the Opera javascript console enabled and it displays errors from a test script. However when I view the embed content page in a xerte published project there are no errors displayed. The project displays but there is simply no content embeded.

Kind regards

Johnathan

On 31 January 2012 13:43, Pat Lockley <patrick.lockley at googlemail.com<mailto:patrick.lockley at googlemail.com>> wrote:
any JS errors?

On Tue, Jan 31, 2012 at 1:42 PM, Kemp Johnathan
<johnathan.kemp at ntlworld.com<mailto:johnathan.kemp at ntlworld.com>> wrote:
> Yep,
>
> I found the javascript in index.htm of my published project, but I can't get
> the page to work.
>
> I have created a simple test javascript page with a couple of document.write
> statements and an alert popup and they work, so javascript is definitely
> running in the browser.
>
> So I am some what stumped as far as testing the page goes.
>
> Kind regards
>
> Johnathan
>
> On 31 January 2012 12:36, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>>
> wrote:
>>
>> In index.htm
>>
>>
>>
>> From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>
>> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Kemp Johnathan
>> Sent: 31 January 2012 12:32
>>
>>
>> To: Xerte discussion list
>> Subject: [Xerte] Re: Embed content page
>>
>>
>>
>> I have just compared the content of the rlm file from pageTemplates with
>> that of the XOT svn dated 13/12/2011 (which I downloaded as part of a so far
>> unsuccessful attempt to get toolkits running.)
>>
>>
>>
>> There are some differences which I have now added to my rlm file for the
>> individual page template, but the page continues to fail to display in
>> either Opera or Internet Explorer.
>>
>>
>>
>> I suspect the problem lies in the line
>>
>>
>>
>> callJS('makePopUp', params);
>>
>>
>>
>> Where is the javascript located? Is it part of swfObject, or a separate
>> file?
>>
>>
>>
>> I suspect the problem is mainly one of not having access to the
>> javascript?
>>
>> So where would I find the relevant javascript files in the XOT svn folders
>> and where would I need to install them in a standalone Xerte installation?
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Johnathan
>>
>>
>>
>>
>>
>>
>>
>> On 31 January 2012 11:46, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>>
>> wrote:
>>
>> Having said that it works in toolkits here. Not sure about local.
>>
>>
>>
>> From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>
>> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney
>> Sent: 31 January 2012 11:45
>> To: Xerte discussion list
>> Subject: [Xerte] Re: Embed content page
>>
>>
>>
>> Just works here...
>>
>>
>>
>> Error! Filename not specified.
>>
>>
>>
>> From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>
>> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Kemp Johnathan
>> Sent: 31 January 2012 11:43
>> To: Xerte discussion list
>> Subject: [Xerte] Embed content page
>>
>>
>>
>> I am trying to get the embed content page to work
>>
>> I have created a page in a pagetemplates project and entered into the url
>> the value
>>
>>
>>
>> http://www.guardian.co.uk/
>>
>>
>>
>> However when I preview the page the content is empty. I suspect the page
>> may only work in published projects so I then published the project.
>>
>> I have opened the project in both Opera and Internet Explorer and no
>> content displays.
>>
>>
>>
>> Am I entering the content incorrectly in Embed code or url field of the
>> form.
>>
>>
>>
>> Can someone suggest a value I can use that is known to work?
>>
>>
>>
>> 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 mailing list
>> Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>> 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.
>>
>>
>>
>>
>> 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 mailing list
>> Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>> 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 mailing list
> Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> 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 mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


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/20120202/0d72016f/attachment-0001.html>


More information about the Xerte-dev mailing list