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

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Feb 2 13:46:39 GMT 2012


Amazing what you find in the source code. There is an attribute 'divider' which will draw a dividing line above the current control if true in an xwd.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 02 February 2012 12:20
To: For Xerte technical developers
Subject: [Xerte-dev] Re: [Xerte] Re: Embed content page

I have been testing embedDiv in desktop xerte both in a pageTemplates project and as an individual page template. To test I have published the project and then simply opened index.htm in a browser. I have no web server running on my PC. I am assuming that the javascript that makes the page work is running in the browser and does not therefor require a web server.

This I believe would rule out mime types as being an issue.

The url I used was the guardian home page as indicated in an earlier post and this worked fine for Julian, so spaces in file names should not be an issue.

Has anyone tested embedDiv in a pageTemplates desktop Xerte project and then been able to publish the project, open the page in a browser and view the embedded content, in a situation in which they are not using a web server?

Kind regards

Johnathan

On 2 February 2012 11:53, Ron Mitchell <ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>> wrote:
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> [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 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.

_______________________________________________
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

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/3e838bf4/attachment-0001.html>


More information about the Xerte-dev mailing list