<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta content="MSHTML 6.00.6000.17092" name="GENERATOR">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body ocsi="x">
<div style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>standalone you can use either, but they are both there so the file can work with toolkits, which sends template path into the swf. In toolkits, templatePath != FileLocation.</div>
<div><font face="tahoma" size="2"></font> </div>
<div><font face="tahoma" size="2">The capital F in FileLocation is a throwback to Authorware days.... ought to add a line somewhere fileLocation = FileLocation so it doesn't trip you up...</font></div>
<div><font face="tahoma" size="2"></font> </div>
<div><font face="tahoma" size="2">J</font></div>
<div dir="ltr"><font face="Tahoma" color="#000000" size="2"></font> </div>
<div id="divRpF229627" style="DIRECTION: ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Mary Ann Ahearn [maryann@moberg.com]<br>
<b>Sent:</b> 01 December 2010 22:18<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> Re: [Xerte] templatePath problem in Page Templates with Desktop Xerte 2<br>
</font><br>
</div>
<div></div>
<div>Quick note for anyone else out there having the problem that's been discussed in this thread -
<br>
<br>
It seems that if you replace "<b>templatePath</b>" with "<b>FileLocation</b>" in any wizard rlm file, this solves the problem. A page built from the updated wizard then works both on its own and run inside our wrapper.<br>
<br>
I thought we had tried this solution, but it is possible I used "<b>fileLocation</b>" instead of "<b>FileLocation</b>" early in the process with no luck and never noticed the mistake.
<br>
<br>
DUH<br>
<br>
Is there a reason that the desktop page wizards use templatePath, or is it just a leftover from XOT?<br>
<br>
Thanks!<br>
ma<br>
<br>
<div class="gmail_quote">On Tue, Nov 9, 2010 at 10:41 AM, Julian Tenney <span dir="ltr">
<<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div lang="EN-GB">
<div>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">That’s right, but you ought to be able to see how fileLocation is being passed in, so do the same thing.</span></p>
<p class="MsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)"></span> </p>
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 09 November 2010 15:04</p>
<div>
<div></div>
<div><br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] templatePath problem in Page Templates with Desktop Xerte 2</div>
</div>
</span>
<p></p>
</div>
</div>
<div>
<div></div>
<div>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"> </p>
<p class="MsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt"><br>
<br>
Don't know how your wrapper works, but I'm guessing you'll have to get that var into the wrapper and pass it down to the embedded .rlo swf<br>
<br>
</span></p>
<div class="MsoNormal" style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align="center">
<span style="FONT-SIZE: 10pt">
<hr align="center" width="100%" size="2">
</span></div>
<p class="MsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt">From: <a href="mailto:maryann@moberg.com">maryann@moberg.com</a><br>
Date: Tue, 9 Nov 2010 08:19:41 -0500<br>
Subject: Re: [Xerte] templatePath problem in Page Templates with Desktop Xerte 2<br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>
<br>
Thanks, Dave & Julian, we'll play around and see what happens.<br>
<br>
ma</span></p>
<div>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 10pt">On Tue, Nov 9, 2010 at 5:54 AM, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>> wrote:</span></p>
<div>
<div>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">Right at the top of the engine code is this:</span><span style="FONT-SIZE: 10pt"></span></p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)"></span><span style="FONT-SIZE: 10pt"></span> </p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">var FileLocation = _level0.FileLocation;</span><span style="FONT-SIZE: 10pt"></span></p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">var templatePath = _level0.templatePath;</span><span style="FONT-SIZE: 10pt"></span></p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">if (templatePath == undefined){</span><span style="FONT-SIZE: 10pt"></span></p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)"> templatePath = FileLocation;</span><span style="FONT-SIZE: 10pt"></span></p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">}</span><span style="FONT-SIZE: 10pt"></span></p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)"></span><span style="FONT-SIZE: 10pt"></span> </p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">i.e. if templatePath is passed in from the html page (as below), it uses that path, otherwise it should be the same path as fileLocation.</span><span style="FONT-SIZE: 10pt"></span></p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)"></span><span style="FONT-SIZE: 10pt"></span> </p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)">Try assigning a flashvar templatePath in your javascript and passing it into the movie.</span><span style="FONT-SIZE: 10pt"></span></p>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125)"></span><span style="FONT-SIZE: 10pt"></span> </p>
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="MsoNormal" style="MARGIN-LEFT: 72pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 08 November 2010 22:11<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] templatePath problem in Page Templates with Desktop Xerte 2</span><span style="FONT-SIZE: 10pt"></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="MARGIN-LEFT: 72pt"><span style="FONT-SIZE: 10pt"></span> </p>
<p class="MsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 72pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt"><br>
This is all highly un-researched, just indirect references I found in the archives:<br>
<br>
<br>
"You need to distinquish between template path and FileLocation when running in toolkits, as the two locations are different.
<br>
FileLocation is the folder where the xml file is; templatePath is the folder where the rlt is.
<br>
Locally, the two are the same."<br>
<br>
I did a search in a local copy of XOT and found this in rloObject.js:<br>
<br>
var templatePath = rloFile.substr(0, rloFile.lastIndexOf('/') + 1);<br>
================<br>
<br>
I'm guessing .rloFile refers to the domain path to the .rlo on the server.<br>
<br>
So my shot in the dark is you have to make sure templatePath is pointing to the folder where your .rlt is located (not the .rlo), as it looks like it defaults to above).<br>
<br>
<br>
Dave<br>
<br>
<br>
</span></p>
<div style="MARGIN-LEFT: 36pt">
<div class="MsoNormal" style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align="center">
<span style="FONT-SIZE: 10pt">
<hr align="center" width="100%" size="2">
</span></div>
</div>
<p class="MsoNormal" style="MARGIN-LEFT: 72pt"><span style="FONT-SIZE: 10pt">From:
<a href="mailto:maryann@moberg.com">maryann@moberg.com</a><br>
Date: Mon, 8 Nov 2010 16:36:10 -0500<br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>
Subject: [Xerte] templatePath problem in Page Templates with Desktop Xerte 2<br>
<br>
We've been using the page wizards to create learning objects that we then load into a flash wrapper application that creates a menu of them so that the user can select them as desired.
<br>
<br>
Everything works fine with the wizard created pages when run directly in the browser.
<br>
<br>
All xerte pages that are created by hand rather than by page templates work fine when run in our wrapper and also when published and run on their own in a browser.
<br>
<br>
The problem comes when we run an rlo file containing wizard-created pages from our flash wrapper - it can't seem to resolve "templatePath" in order to find the panel.swf that I reference.
<br>
<br>
We can't find where templatePath is being assigned. Looked around on the wiki page the source for xerte.swf but couldn't find it.<br>
<br>
<br>
Here's the line from the one of the page template rlm files:<br>
<span style="COLOR: rgb(51,51,255)"> <DIS tabIndex="-1" id="panel" name="panel" x="-300" y="20" type="ext" url="templatePath + 'common/whitePanel.swf'"><![CDATA[]]></DIS><br>
</span><br>
<br>
Tried substituting "fileLocation" for it but that didn't work. <br>
<br>
<br>
What did work is just removing "templatePath" from the url like this:<br>
<span style="COLOR: rgb(51,51,255)"> <DIS tabIndex="-1" id="panel" name="panel" x="-300" y="20" type="ext" url="'common/whitePanel.swf'"><![CDATA[]]></DIS><br>
</span><br>
<br>
Here's how we're loading the rlo file in our flash wrapper:<br>
<span style="COLOR: rgb(51,51,255)"> this._parent.attachMovie('Xerte', 'myRLO', 0).init('DABB.rlo', 230, 80, 1020, 640);</span><br>
<br>
<br>
In short, we've figured out a way to edit the rlo files so that they work in our wrapper but then they don't work outside of it.
<br>
<br>
Hoping there's a way to get the same file to work in both situations.<br>
<br>
Thanks!!<br>
ma<br>
<br>
<br>
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.
<br>
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. <br>
<br>
_______________________________________________ Xerte mailing list <a href="mailto:Xerte@lists.nottingham.ac.uk">
Xerte@lists.nottingham.ac.uk</a> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a> 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. </span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt"><br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
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.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
</span></p>
</div>
<p class="MsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 10pt"><br>
<br>
_______________________________________________ Xerte mailing list <a href="mailto:Xerte@lists.nottingham.ac.uk">
Xerte@lists.nottingham.ac.uk</a> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a> 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. </span></p>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
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.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>