[ZendTo] Re: FW: Issue with Chrome browser - "Leave this Page"
Jules
Jules at Zend.To
Tue Jan 28 17:06:19 GMT 2014
We're still working on a better fix for this. Re-enabling the
unload-handler immediately after the upload has started doesn't appear
to work, when I'm sure it should. Don't worry, work is continuing on
this one, I'll post a new version once I have a better solution.
Jules.
On 17/01/2014 16:19, John Webber (NBI) wrote:
>
> Hi Jules,
>
> Thanks for the pointer.
>
> I have made, and tested, the change you suggest below -- it all seems
> to work correctly, thanks.
>
> Please can you keep me posted about whether this issue will be solved
> fully, instead of just the quick fix / workaround below.
>
>
> Thanks
>
> John
>
> *From:*Jules [mailto:Jules at Zend.To]
> *Sent:* 02 January 2014 11:15
> *To:* John Webber (NBI)
> *Cc:* ZendTo Users
> *Subject:* Re: FW: Issue with Chrome browser - "Leave this Page"
>
> 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 <mailto: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): 1234HPC 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 <http://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 <http://www.Zend.To>
>
> Twitter: @JulesFM
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
Jules
--
Julian Field MEng MBCS CITP CEng
'When a man points a finger at someone else, he should remember
that four of his fingers are pointing at himself.' - Louis Nizer
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/20140128/8b77fa4e/attachment-0001.html
More information about the ZendTo
mailing list