<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div><br></div><div>Johnathan, I could be wrong, but I believe your solution (being XOT based) only addresses navigating to top level pages, correct?</div><div><br></div><div>I think the OP wanted to nav to a subframework.</div><div>I guess if there is only a single subframework, it could be hard coded as opposed to passed.</div><div>In either case, the logic will have to be adapted to account for non-top level pages.</div><div><br></div><div>Dave</div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Thu, 7 Jun 2012 16:25:11 +0100<br>From: johnathan.kemp@ntlworld.com<br>To: xerte@lists.nottingham.ac.uk<br>Subject: [Xerte] Re: Page linking from external website<br><br><div>I posted a proof of concept Xerte project in early May that I think does what you are trying to achieve.<br></div><div><br></div><div>I don't know how to link to that posting and I couldn't locate it in the Xerte community archive, perhaps it is to recent to be archived.</div>
<div><br></div><div>However I still have a copy of the posting in my inbox so I have duplicated it below.</div><div><br></div><div>If you examine the project you should be able to figure out how it works.</div><div><br></div>
<div>If you are using XOT rather than desktop Xerte then you should be able to use the same technique but look up the page details in the extXML perhaps by looping through extXML.</div><div><br></div><div>  pageTitle_array = new Array();<br>
<br>  for (i = 0; i < extXML.firstChild.childNodes.length; i++){<br>    pageTitle_array.push(extXML.firstChild.childNodes[i].<a href="http://attributes.name" target="_blank">attributes.name</a>);<br>  }</div><div><br></div><div>This will probably work better than my example as in Desktop Xerte I used the rootIcon.pages array to look up the page details in the project and as this is not guaranteed to have finished being built by the time the first page loads I had to add a time delay loop to give it time to complete.</div>
<div><br></div><div>If you already have the page identification sorted and just want to figure out how to get the page name from the url then look at the rlsObject.js file </div><div><br></div><div>As further explanation I have pasted the text from my original posting below.</div>
<div><br></div><div>I hope this helps.</div><div><br></div><div>******<br>Hello Everyone,<br><br>I have been working (between beta version stuff) on a means of making it possible to open a Xerte project at a specific page, rather than always have them open at the title page.<br>
<br>Attached is a simple 3 page desktop Xerte project as a proof of concept.<br><br>Do not open it in Xerte (at least until you have finished testing it!) If you publish the project, in Xerte, your local copy of rloObject.js will overwrite the one in the project and the code that supports the redirection will be lost.<br>
<br>Would you mind unzipping it and then opening index.htm in a web browser - not Xerte.<br><br>For it to work you will need to set up the folder in which you place it as a trusted location in the Flash player settings (otherwise javascript calls will not work).<br>
<br>It should open at a title page.<br><br>Then add to the url in your browser <br><br>?pageID=menu<br><br>and press enter to reload the page.<br><br>After a short delay the project should redirect from the title page to the menu page.<br>
<br>I have tested this in Firefox, IE8, and Opera. <br><br>If anyone has other browsers at their disposal I would be keen to know if the redirection works. e.g. Chrome, Safari,<br><br>Should you examine the project the key stuff that makes it work is a function at the end of rlsObject.js and some code running off the onInitHandler interaction in the entry frame. Because rootIcon.pages.length has not finished being built when the onInit event fires I have added a timer to create a delay to allow time for the array to be built - hence the delay before redirection takes place.<br>
<br>Should this prove reliable in your testing I believe the same approach should be applicable to XOT (albeit using a different array to source the page information)<br></div><div>******</div><div><br></div><div>Kind regards</div>
<div><br></div><div>Johnathan</div><div><br></div><div class="ecxgmail_quote">On 7 June 2012 15:34, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">
<div><br></div><div>I swear I've done this but now can't remember how:</div><div><span style="font-size:10pt">Use callJS to get a return value into Xerte.</span></div><div><br></div><div>I am tripping the function in </div>

<div><br></div><div>js in page:</div><div><br></div><div><div>function getURL() {</div><div>    var baseURL = document.URL;</div><div>    return baseURL;</div><div>//alert(baseURL);</div><div>}</div></div><div><br></div>
<div>
<br></div><div>in Xerte:</div><div><span style="font-size:10pt">baseURL = callJS('</span>
getURL <span style="font-size:10pt">','0');</span></div><div><br></div><div>baseURL displays as undefined.</div><div><br></div><br><div><div><hr>From: <a href="mailto:James.Roscoe@nottingham.ac.uk">James.Roscoe@nottingham.ac.uk</a><br>

To: <a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>Date: Thu, 7 Jun 2012 14:10:20 +0100<br>Subject: [Xerte] Page linking from external website<br><br></div><div><div>
<div><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Hello,</span><BR><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">I have a quick question that may be related to the ongoing discussion on pageLink.</span><BR>

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><BR><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">I understand that it is possible to page link internally using: </span><BR>

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><a href="asfunction:_level0.pageLink,1">Link</a></span><BR><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><BR>

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">But I would like to link to a specific Xerte page from an external webpage – is there something I can put in my HTML that will let me do this?</span><BR>

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><BR><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Many thanks,</span><BR><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">James</span><BR>

</div><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></div></div>_______________________________________________
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.</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>
<br>_______________________________________________
Xerte mailing list
Xerte@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.</div>                                     </div></body>
</html>