<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 15 (filtered medium)">
<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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
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 bgcolor="white" lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Jules,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for the pointer.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have made, and tested, the change you suggest below – it all seems to work correctly, thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Please can you keep me posted about whether this issue will be solved fully, instead of just the quick fix / workaround below.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><br>
Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:EN-GB"> Jules [mailto:Jules@Zend.To]
<br>
<b>Sent:</b> 02 January 2014 11:15<br>
<b>To:</b> John Webber (NBI)<br>
<b>Cc:</b> ZendTo Users<br>
<b>Subject:</b> Re: FW: Issue with Chrome browser - "Leave this Page"<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">I've got a quick fix for this. Unfortunately it means you can navigate away from (and hence abort) a running upload, but it stops the Chrome warning, so is better than nothing.<br>
<br>
You want to edit /opt/zendto/templates/new_dropoff.tpl<br>
<br>
Find the start of the "submitform" function, and add the last line of this little code snippet:<br>
<br>
<script type="text/javascript"><br>
function submitform() {<br>
if (validateForm()) {<br>
<b>window.onbeforeunload=function(){}<br>
</b><br>
Jules.<span style="font-size:12.0pt;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<div>
<p class="MsoNormal">On 17/12/2013 14:55, Jules wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm still working on a decent fix to this. Once it's sorted, I'll release a new version and announce it on the mailing list.<br>
<br>
Jules.<o:p></o:p></p>
<div>
<p class="MsoNormal">On 21/11/2013 12:57, John Webber (NBI) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#1F497D">Hi,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><br>
I have investigated the issue below and found that it effects the latest version of Chrome.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">We have tested this scenario with Chrome “Version 30.0.1599.101 m”, and found that it functions without any problems. However, when we attempt to drop off a file using Chrome “Version 31.0.1650.57 m”, we see
the issue below.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">The issue seems to be that clicking the button to trigger a drop off (templates/new_dropoff.tpl) triggers sets the “ignore_unload” to false earlier than it should and therefore the function “doBeforeUnload()”
returns the “unload_msg”.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Please can you advice how we can work around this issue.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">John</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> John Webber (NBI)
<br>
<b>Sent:</b> 21 November 2013 10:19<br>
<b>To:</b> '<a href="mailto:Support@Zend.To">Support@Zend.To</a>'<br>
<b>Subject:</b> Issue with Chrome browser - "Leave this Page"</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We have encountered an issue with the Chrome using ZendTo and would appreciate your advice.
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Once we have entered the recipient of the file and chosen the file to send, when I click to the button to drop off the files, I see the following error dialog box, but only on the Chrome:
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">“Confirm Navigation. If you leave this page, you will abandon this drop-off. Are you sure you want to leave this page?”
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The two options available are: <o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">“Leave this Page” or “Stay on this Page”.
<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">If I select to stay on the page, the upload does not start, although the uploading image does appear! If I select to leave the page, it works normally. Please can you advise how I can correct this issue.<o:p></o:p></p>
<p class="MsoNormal"><br>
Thanks<o:p></o:p></p>
<p class="MsoNormal">John<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#4F81BD;mso-fareast-language:EN-GB">-------------------------------------------------------------------------------------------------------------------------------------------- </span></b><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><b><span style="font-family:"Arial","sans-serif";color:#548DD4;mso-fareast-language:EN-GB">John Webber<br>
</span></b><span style="color:#1F497D;mso-fareast-language:EN-GB">Computing and Information Services</span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">NBI Partnership Ltd</span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">Norwich Research park</span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">Colney Lane</span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">Norwich</span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">NR4 7UH</span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB"> </span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">E-Mail:</span><span style="mso-fareast-language:EN-GB">
</span><a href="mailto:john.webber@nbi.ac.uk"><span style="color:blue;mso-fareast-language:EN-GB">john.webber@nbi.ac.uk</span></a><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">Web:</span><span style="mso-fareast-language:EN-GB">
</span><span style="color:#1F497D;mso-fareast-language:EN-GB"> </span><a href="http://www.nbi.ac.uk/"><span style="color:blue;mso-fareast-language:EN-GB">http://www.nbi.ac.uk</span></a><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">Tel:</span><span style="mso-fareast-language:EN-GB">
</span><span style="color:#1F497D;mso-fareast-language:EN-GB"> +44(0)1603 450 818</span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB"> </span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB">Helpdesk (Tel): 1234</span><span style="mso-fareast-language:EN-GB">
</span><span style="color:#1F497D;mso-fareast-language:EN-GB"> HPC Support (Web):</span><span style="mso-fareast-language:EN-GB">
</span><span style="color:#1F497D;mso-fareast-language:EN-GB"> </span><a href="http://hpc.nbi.ac.uk/"><span style="color:blue;mso-fareast-language:EN-GB">http://hpc.nbi.ac.uk</span></a><span style="color:#1F497D;mso-fareast-language:EN-GB"> (NBI internal)</span><o:p></o:p></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span style="color:#1F497D;mso-fareast-language:EN-GB"> HPC Support (Tel):</span><span style="mso-fareast-language:EN-GB">
</span><span style="color:#1F497D;mso-fareast-language:EN-GB"> 2003 (NBI internal)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB"> </span><o:p></o:p></p>
<p class="MsoNormal"><i><span style="color:#1F497D;mso-fareast-language:EN-GB">The NBI Partnership Ltd provides non-scientific services to the Institute of Food Research, the John Innes Centre, The Genome Analysis Centre and The Sainsbury Laboratory</span></i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB"><br>
<br>
<o:p></o:p></span></p>
<pre>Jules<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-- <o:p></o:p></pre>
<pre>Julian Field MEng MBCS CITP CEng<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Viking, North Utsire: Southwesterly 6 to gale 8, backing southerly 7 to severe<o:p></o:p></pre>
<pre>gale 9 later. Rough or very rough. Showers. Moderate or good.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a href="http://www.Zend.To">www.Zend.To</a><o:p></o:p></pre>
<pre>Twitter: @JulesFM<o:p></o:p></pre>
<pre>PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654<o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB"><br>
<br>
<o:p></o:p></span></p>
<pre>Jules<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-- <o:p></o:p></pre>
<pre>Julian Field MEng MBCS CITP CEng<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Dogger, Fisher, German Bight, Humber, Thames, Dover: South or southwest 6 to<o:p></o:p></pre>
<pre>gale 8, occasionally severe gale 9 at first in Fisher. Moderate or rough,<o:p></o:p></pre>
<pre>occasionally very rough at first. Rain or showers. Good, occasionally<o:p></o:p></pre>
<pre>poor.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a href="http://www.Zend.To">www.Zend.To</a><o:p></o:p></pre>
<pre>Twitter: @JulesFM<o:p></o:p></pre>
<pre>PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654<o:p></o:p></pre>
</blockquote>
</div>
</body>
</html>