<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
p.ecmsonormal, li.ecmsonormal, div.ecmsonormal
        {mso-style-name:ec_msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ececmsonormal, li.ececmsonormal, div.ececmsonormal
        {mso-style-name:ec_ecmsonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsonormal, li.ecececmsonormal, div.ecececmsonormal
        {mso-style-name:ec_ececmsonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsochpdefault, li.ecececmsochpdefault, div.ecececmsochpdefault
        {mso-style-name:ec_ececmsochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsonormal1, li.ecececmsonormal1, div.ecececmsonormal1
        {mso-style-name:ec_ececmsonormal1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsochpdefault1, li.ecececmsochpdefault1, div.ecececmsochpdefault1
        {mso-style-name:ec_ececmsochpdefault1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ececmsochpdefault, li.ececmsochpdefault, div.ececmsochpdefault
        {mso-style-name:ec_ecmsochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ececmsonormal1, li.ececmsonormal1, div.ececmsonormal1
        {mso-style-name:ec_ecmsonormal1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsonormal2, li.ecececmsonormal2, div.ecececmsonormal2
        {mso-style-name:ec_ececmsonormal2;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsochpdefault2, li.ecececmsochpdefault2, div.ecececmsochpdefault2
        {mso-style-name:ec_ececmsochpdefault2;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsonormal11, li.ecececmsonormal11, div.ecececmsonormal11
        {mso-style-name:ec_ececmsonormal11;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsochpdefault11, li.ecececmsochpdefault11, div.ecececmsochpdefault11
        {mso-style-name:ec_ececmsochpdefault11;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ececmsochpdefault1, li.ececmsochpdefault1, div.ececmsochpdefault1
        {mso-style-name:ec_ecmsochpdefault1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecmsochpdefault, li.ecmsochpdefault, div.ecmsochpdefault
        {mso-style-name:ec_msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.ecmsohyperlink
        {mso-style-name:ec_msohyperlink;}
span.ecmsohyperlinkfollowed
        {mso-style-name:ec_msohyperlinkfollowed;}
span.echtmlpreformattedchar
        {mso-style-name:ec_htmlpreformattedchar;}
span.ececmsohyperlink1
        {mso-style-name:ec_ecmsohyperlink1;}
span.ececmsohyperlinkfollowed1
        {mso-style-name:ec_ecmsohyperlinkfollowed1;}
span.ecececmsohyperlink11
        {mso-style-name:ec_ececmsohyperlink11;}
span.ecececmsohyperlinkfollowed11
        {mso-style-name:ec_ececmsohyperlinkfollowed11;}
span.ecececemailstyle1711
        {mso-style-name:ec_ececemailstyle1711;}
span.ecececemailstyle1811
        {mso-style-name:ec_ececemailstyle1811;}
span.ecececemailstyle1911
        {mso-style-name:ec_ececemailstyle1911;}
span.ecececemailstyle2011
        {mso-style-name:ec_ececemailstyle2011;}
span.ececemailstyle341
        {mso-style-name:ec_ecemailstyle341;}
span.ececemailstyle351
        {mso-style-name:ec_ecemailstyle351;}
span.ececemailstyle361
        {mso-style-name:ec_ecemailstyle361;}
span.ecemailstyle54
        {mso-style-name:ec_emailstyle54;}
p.ecmsonormal1, li.ecmsonormal1, div.ecmsonormal1
        {mso-style-name:ec_msonormal1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.ecmsohyperlink1
        {mso-style-name:ec_msohyperlink1;
        color:blue;
        text-decoration:underline;}
span.ecmsohyperlinkfollowed1
        {mso-style-name:ec_msohyperlinkfollowed1;
        color:purple;
        text-decoration:underline;}
span.echtmlpreformattedchar1
        {mso-style-name:ec_htmlpreformattedchar1;
        font-family:Consolas;}
p.ececmsonormal2, li.ececmsonormal2, div.ececmsonormal2
        {mso-style-name:ec_ecmsonormal2;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsonormal3, li.ecececmsonormal3, div.ecececmsonormal3
        {mso-style-name:ec_ececmsonormal3;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsochpdefault3, li.ecececmsochpdefault3, div.ecececmsochpdefault3
        {mso-style-name:ec_ececmsochpdefault3;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsonormal12, li.ecececmsonormal12, div.ecececmsonormal12
        {mso-style-name:ec_ececmsonormal12;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsochpdefault12, li.ecececmsochpdefault12, div.ecececmsochpdefault12
        {mso-style-name:ec_ececmsochpdefault12;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ececmsochpdefault2, li.ececmsochpdefault2, div.ececmsochpdefault2
        {mso-style-name:ec_ecmsochpdefault2;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ececmsonormal11, li.ececmsonormal11, div.ececmsonormal11
        {mso-style-name:ec_ecmsonormal11;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.ececmsohyperlink11
        {mso-style-name:ec_ecmsohyperlink11;
        color:blue;
        text-decoration:underline;}
span.ececmsohyperlinkfollowed11
        {mso-style-name:ec_ecmsohyperlinkfollowed11;
        color:purple;
        text-decoration:underline;}
p.ecececmsonormal21, li.ecececmsonormal21, div.ecececmsonormal21
        {mso-style-name:ec_ececmsonormal21;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsochpdefault21, li.ecececmsochpdefault21, div.ecececmsochpdefault21
        {mso-style-name:ec_ececmsochpdefault21;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.ecececmsonormal111, li.ecececmsonormal111, div.ecececmsonormal111
        {mso-style-name:ec_ececmsonormal111;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.ecececmsochpdefault111, li.ecececmsochpdefault111, div.ecececmsochpdefault111
        {mso-style-name:ec_ececmsochpdefault111;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.ecececmsohyperlink111
        {mso-style-name:ec_ececmsohyperlink111;
        color:blue;
        text-decoration:underline;}
span.ecececmsohyperlinkfollowed111
        {mso-style-name:ec_ececmsohyperlinkfollowed111;
        color:purple;
        text-decoration:underline;}
span.ecececemailstyle17111
        {mso-style-name:ec_ececemailstyle17111;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.ecececemailstyle18111
        {mso-style-name:ec_ececemailstyle18111;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.ecececemailstyle19111
        {mso-style-name:ec_ececemailstyle19111;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.ecececemailstyle20111
        {mso-style-name:ec_ececemailstyle20111;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.ececemailstyle3411
        {mso-style-name:ec_ecemailstyle3411;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.ececemailstyle3511
        {mso-style-name:ec_ecemailstyle3511;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.ececemailstyle3611
        {mso-style-name:ec_ecemailstyle3611;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
p.ececmsochpdefault11, li.ececmsochpdefault11, div.ececmsochpdefault11
        {mso-style-name:ec_ecmsochpdefault11;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.ecemailstyle541
        {mso-style-name:ec_emailstyle541;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
p.ecmsochpdefault1, li.ecmsochpdefault1, div.ecmsochpdefault1
        {mso-style-name:ec_msochpdefault1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle78
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks Pat and Dave<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I got a bit bored with some other work I was doing so just did a
few more tests via a localhost installation so in case this is of use to anyone
in future a quick update:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>My tests echo what Dave has said my_location =
callJS('window.location.href.toString'); gives exactly what I was after e.g the
url ending with play.php?template_id=8 but unfortunately this doesn&#8217;t
work in IE and most of the colleges and staff I work with still use IE by
default.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I looked at the flashVars and my_location=_root.site_url;
certainly works in all browsers and I thought that combined with root.linkID
and a bit of joining &nbsp;might give me what I wanted but root.linkID gives
undefined irrespective of browser.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>A couple of the flashVars seem to include the id e.g. FileLocation
equals USER-FILES/8-guest-Nottingham/ and the 8 is the id so a bit of string
manipulation gives me what I wanted where I can automatically re-create the url
with the correct ID on the end.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>However I realised that&#8217;s still not universal and a question
for Pat I guess &#8211; some installations will be play.php?template_id=8
others will just be play_8 is there any way I can automatically detect that? <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ron<o:p></o:p></span></p>

<p class=MsoNormal><a name="_MailEndCompose"><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></a></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Patrick
Lockley<br>
<b>Sent:</b> 20 September 2009 01:28<br>
<b>To:</b> Xerte discussion list; Xerte list<br>
<b>Subject:</b> RE: [Xerte] detect/retrieve url of an LO<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div id=idOWAReplyText72490>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>the
site_url is passed in as a flashvar, probably script accessible as
_root.site_url - the id can be get at from templateData (I think).</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk on
behalf of Dave Burnett<br>
<b>Sent:</b> Sat 19/09/2009 21:16<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] detect/retrieve url of an LO</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Is that null in IE?<br>
<br>
I just did some poking around and it looks like the original call works in
FireFox/Mozilla, but IE won't let you call the location object directly, it has
to be through a function in the &lt;head&gt;.<br>
<br>
Good old IE.<br>
ActiveX didn't manage to totally win the browser war, but it sure introduced
the world to a lot of viruses (virii?)<br>
<br>
;-) <br>
<br>
&nbsp;<o:p></o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center id=stopSpelling>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>From: ronm@mitchellmedia.co.uk<br>
To: xerte@lists.nottingham.ac.uk<br>
Subject: RE: [Xerte] detect/retrieve url of an LO<br>
Date: Sat, 19 Sep 2009 20:04:58 +0100<o:p></o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks for the suggestion Dave</span><span style='font-size:
10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I did try something like that and just tested again using your
suggestion. When I try that locally I get
file:///I:/xerte/test_templates/index.htm but online via a toolkits
installation I get null. As Julian suggested I was wanting something like server.com/toolkits/play_123
and to be honest that&#8217;s further complicated by the fact that the QR code
and short url are generated at runtime, so even if I could get this working it
might give unpredictable results if the LO is embedded or played via preview
rather than the public url. So in short I&#8217;ve left it so that the author
just adds the public url of the LO or the address of another site/page when
authoring rather than have an option for the url of the LO to be automatic.</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks for your help</span><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ron</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 19 September 2009 19:32<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] detect/retrieve url of an LO</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><br>
Ron, that's why asked if the callJS could talk to the DOM directly.<br>
<br>
In the archives I found this posted by Julian:<br>
<br>
I added a new function 'callJS(functionName, parameters)' which wraps<br>
Flash's ExternalInterface.call method.<br>
Use it like this:<o:p></o:p></span></p>

<pre>callJS('myJavascriptFunctionName', 'parameters');<br>
<br>
&nbsp;<o:p></o:p></pre>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Now, if it is a wrap of the
ExternalInterface.call method, which looks like this:<br>
<br>
ExternalInterface.call(&#8221;window.location.href.toString&#8221;);<br>
<br>
then in your code,<br>
<br>
my_location = callJS('window.location.href.toString');<br>
<br>
*should* give you the URL location of the page the .rlo (or at least the swf
engine) is executing from.<br>
No need for any extra javascript in the &lt;HEAD&gt;. <br>
<br>
Dave<br>
<br>
<o:p></o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>From: ronm@mitchellmedia.co.uk<br>
To: xerte@lists.nottingham.ac.uk<br>
Subject: RE: [Xerte] detect/retrieve url of an LO<br>
Date: Sat, 19 Sep 2009 19:03:09 +0100<o:p></o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Julian</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>As we discussed I really wanted this to work without the need
for any additional javascript so that it could be used via any toolkits
installation so if there is a function in the existing code somewhere please
let me know. As we briefly discussed it would be really good if there was a way
of containing all the code in the models and have those automatically detected
and displayed as page types available. It would make updating and keeping
custom pages in sync much easier.</span><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I&#8217;ve created a simple example of each of the four custom
page types I&#8217;ve adapted and integrated and made them available as a zip
too at <a href="http://mitchellmedia.co.uk/?p=230">http://mitchellmedia.co.uk/?p=230</a>
</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ron</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>RonM<br>
<b>Sent:</b> 18 September 2009 09:52<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> RE: [Xerte] detect/retrieve url of an LO</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes indeed!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....?</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> 18 September 2009 09:28<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] detect/retrieve url of an LO</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I think what you want is the server.com/toolkits/play_123,
right?</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> Friday, September 18, 2009 12:20 AM<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] detect/retrieve url of an LO</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><br>
Can you talk to the DOM directly with callJS?<br>
Maybe just window.location?<o:p></o:p></span></p>

<div style='margin-left:36.0pt'>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Subject:
RE: [Xerte] detect/retrieve url of an LO<br>
Date: Thu, 17 Sep 2009 15:40:36 -0700<br>
From: Paul.Swanson@harlandfs.com<br>
To: xerte@lists.nottingham.ac.uk<o:p></o:p></span></p>

<div>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:#1F497D'>You might try a javascript
function in the launching web page:</span><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:#1F497D'>function returnURL() {</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:#1F497D'>&nbsp;&nbsp;&nbsp; var
baseURL = document.URL;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:#1F497D'>&nbsp;&nbsp;&nbsp; return
baseURL;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:#1F497D'>}</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:#1F497D'>Then use Xerte&#8217;s
callJS() method to get it.</span><span style='font-size:10.0pt;font-family:
"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div style='border:none;border-left:solid windowtext 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>RonM<br>
<b>Sent:</b> Thursday, September 17, 2009 3:29 PM<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> RE: [Xerte] detect/retrieve url of an LO</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:#1F497D'>Thanks for the suggestion but
that doesn&#8217;t work for what I want. _url comes close but this may be a
question for Pat as what I really want is to automatically detect, or at least
dynamically create, the public url of the LO. Hopefully Pat will have a
suggestion tomorrow.</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Paul Swanson<br>
<b>Sent:</b> 17 September 2009 22:53<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] detect/retrieve url of an LO</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif";color:#1F497D'>FileLocation?</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div style='border:none;border-left:solid windowtext 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>RonM<br>
<b>Sent:</b> Thursday, September 17, 2009 2:50 PM<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> [Xerte] detect/retrieve url of an LO</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Hi Pat/Julian<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>I should probably know this but is there a
system variable or functions or something which automatically contains the url
of the LO? <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Cheers<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Ron<o:p></o:p></span></p>

</div>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div style='margin-left:36.0pt'>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Hotmail: Powerful Free email with security
by Microsoft. <a href="http://clk.atdmt.com/GBL/go/171222986/direct/01/">Get it
now.</a><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Bing
brings you health info from trusted sources. <a
href="http://www.bing.com/search?q=pet+allergy&amp;form=MHEINA&amp;publ=WLHMTAG&amp;crea=TXT_MHEINA_Health_Health_PetAllergy_1x1">Try
it now!</a><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Your
E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a
href="http://clk.atdmt.com/GBL/go/171222985/direct/01/" target="_new">Sign up
now.</a> <o:p></o:p></span></p>

</div>

</div>

</body>

</html>