planetfederal / wps-gui

Graphical User Interface (Model Builder) for OGC:WPS (Web Processing Services)
http://boundlessgeo.com
Apache License 2.0
27 stars 15 forks source link

on TIFF download show progress indicator #106

Closed bartvde closed 10 years ago

bartvde commented 10 years ago

iframe load does not seem to get triggered when we have a successful download (content-disposition), so we have no simple way of hiding the progress indicator. Need to investigate more.

bartvde commented 10 years ago

seems similar to: http://stackoverflow.com/questions/24617735/javascript-iframe-load-event-when-downloading-file-contentdisposition-attachme

bartvde commented 10 years ago

http://stackoverflow.com/questions/20572734/load-event-not-firing-when-iframe-is-loaded-in-chrome

bartvde commented 10 years ago

http://www.atalasoft.com/cs/blogs/jake/archive/2009/06/18/events-to-expect-when-dynamically-loading-iframes-in-javascript.aspx

bartvde commented 10 years ago

The solution requires server-side changes as well unfortunately: http://stackoverflow.com/questions/1106377/detect-when-browser-receives-file-download

bartvde commented 10 years ago
$('#workspace').append('<i id="progress-indicator" style="position:absolute; right: 30px; top: 15px;" class="fa fa-spinner fa-spin fa-5x"></i>');
bartvde commented 10 years ago

closing as not feasible unfortunately