<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 id=owaTempEditStyle>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;}
/* 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;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
span.emailstyle17
{mso-style-name:emailstyle17;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.emailstyle19
{mso-style-name:emailstyle19;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>yes - sorry was working with a slightly earlier version. :-(<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> </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>Julian Tenney<br><b>Sent:</b> 21 June 2011 10:45<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Re: Xerte 2: New Window page<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:black'>i think I got that already - check the file in the svn?<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:black'> <o:p></o:p></span></p></div><div id=divRpF403359><div class=MsoNormal align=center style='text-align:center'><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:black'><hr size=3 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";color:black'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Ron Mitchell [ronm@mitchellmedia.co.uk]<br><b>Sent:</b> 21 June 2011 10:30<br><b>To:</b> 'Xerte discussion list'<br><b>Subject:</b> [Xerte] Re: Xerte 2: New Window page</span><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:black'><o:p></o:p></span></p></div><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Think I spotted another slight error with this which was only really showing when larger graphics were used e.g. larger graphics weren't being constrained to maxwidth or maxheight so I changed the calculate script as follows:</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>p = graphic._width / graphic._height;</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>maxWidth = 465;</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>maxHeight = 465;</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>graphic.constrain(maxWidth, maxHeight);</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>//resize the panel to the graphic</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>panel._width = graphic._width + 20;</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>panel._height = graphic._height + 20;</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>//this was here and not working but now moved above panel settings and works fine</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>//graphic.constrain(maxWidth, maxHeight);</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Also assuming that the change you made to what Johnathan reported is as follows?</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>if (pageIcon.templateData.newWindow[0].previewImage.indexOf('http') == 0){</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>HTH</span><span style='color:black'><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='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <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";color:black'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br><b>Sent:</b> 20 June 2011 12:51<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Re: Xerte 2: New Window page</span><span style='color:black'><o:p></o:p></span></p></div></div><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Get the files from the svn: I did some work on NewWindow last week – those issues might remain, but check the latest version of the files.</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><div style='border:none;border-top:solid #B5C4DF 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";color:black'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black'> xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Kemp Johnathan<br><b>Sent:</b> 20 June 2011 12:19<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Xerte 2: New Window page</span><span style='color:black'><o:p></o:p></span></p></div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>This morning I down loaded the latest version of Xerte 2.16 to obtain the missing New Window and Bleeding Image model files.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>I have been trying to get the new window to work but there are a few issues.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>Line 8 reads<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>if (pageIcon.templateData.textGraphics[0].url.indexOf('http') == 0){<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>So I changed that to reference pageIcon.templateData.newWindow[0].url.indexOf('http') <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>Then the next few lines confused me.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>if (pageIcon.templateData.newWindow[0].url.indexOf('http') == 0){<br>previewImage = "'" + pageIcon.templateData.newWindow[0].previewImage + "'";<br>} else {<br>previewImage = pageIcon.templateData.newWindow[0].previewImage;<br>}<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>If I add a url to the xwd form then the if condition is true and previewImage is set to have ' wrapped around it, in which case no image is displayed, so nothing to click on.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>If I remove the url from the xwd form then the image is displayed but after a few exiting the preview and returning to the preview, the preview stalls with a loading xml message.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>It seems that you need the ' wrapping to stop the page breaking but then the image value is not recognised as a valid url by the image icon.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>Any ideas?<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>Kind regards<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='color:black'>Johnathan<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p><span style='color:black'>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. <o:p></o:p></span></p><p><span style='color:black'>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. <o:p></o:p></span></p></div></div></div></div></body></html>