[ZendTo] Re: FW: Issue with Chrome browser - "Leave this Page"
Jules
Jules at Zend.To
Thu Jan 2 11:15:28 GMT 2014
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.
You want to edit /opt/zendto/templates/new_dropoff.tpl
Find the start of the "submitform" function, and add the last line of
this little code snippet:
<script type="text/javascript">
function submitform() {
if (validateForm()) {
*window.onbeforeunload=function(){}**
*
Jules.
On 17/12/2013 14:55, Jules wrote:
> 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.
>
> Jules.
>
> On 21/11/2013 12:57, John Webber (NBI) wrote:
>>
>> Hi,
>>
>>
>> I have investigated the issue below and found that it effects the
>> latest version of Chrome.
>>
>> 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.
>>
>> 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".
>>
>> Please can you advice how we can work around this issue.
>>
>> Thanks
>>
>> John
>>
>> *From:*John Webber (NBI)
>> *Sent:* 21 November 2013 10:19
>> *To:* 'Support at Zend.To'
>> *Subject:* Issue with Chrome browser - "Leave this Page"
>>
>> Hi,
>>
>> We have encountered an issue with the Chrome using ZendTo and would
>> appreciate your advice.
>>
>> 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:
>>
>> "Confirm Navigation. If you leave this page, you will abandon this
>> drop-off. Are you sure you want to leave this page?"
>>
>> The two options available are:
>>
>> "Leave this Page" or "Stay on this Page".
>>
>> 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.
>>
>>
>> Thanks
>>
>> John
>>
>> *--------------------------------------------------------------------------------------------------------------------------------------------
>> *
>>
>> *John Webber
>> *Computing and Information Services
>>
>> NBI Partnership Ltd
>>
>> Norwich Research park
>>
>> Colney Lane
>>
>> Norwich
>>
>> NR4 7UH
>>
>> E-Mail:john.webber at nbi.ac.uk <mailto:john.webber at nbi.ac.uk>
>>
>> Web:http://www.nbi.ac.uk <http://www.nbi.ac.uk/>
>>
>> Tel: +44(0)1603 450 818
>>
>> Helpdesk (Tel): 1234 HPC Support (Web): http://hpc.nbi.ac.uk
>> <http://hpc.nbi.ac.uk/> (NBI internal)
>>
>> HPC Support (Tel): 2003 (NBI internal)
>>
>> /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/
>>
>>
>> Jules
>>
>> --
>> Julian Field MEng MBCS CITP CEng
>>
>> Viking, North Utsire: Southwesterly 6 to gale 8, backing southerly 7 to severe
>> gale 9 later. Rough or very rough. Showers. Moderate or good.
>>
>> www.Zend.To
>> Twitter: @JulesFM
>> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
> Jules
>
> --
> Julian Field MEng MBCS CITP CEng
>
> Dogger, Fisher, German Bight, Humber, Thames, Dover: South or southwest 6 to
> gale 8, occasionally severe gale 9 at first in Fisher. Moderate or rough,
> occasionally very rough at first. Rain or showers. Good, occasionally
> poor.
>
> www.Zend.To
> Twitter: @JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20140102/a1bf2239/attachment.html
More information about the ZendTo
mailing list