Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

wget/curl now works all the time in IE10

Mike McGann021376e9acf9
diff --git a/src/js/Worldview/DataDownload/BulkDownloadPage.js b/src/js/Worldview/DataDownload/BulkDownloadPage.js
index 41f228acb..0f38cd4a2 100644
--- a/src/js/Worldview/DataDownload/BulkDownloadPage.js
+++ b/src/js/Worldview/DataDownload/BulkDownloadPage.js
@@ -20,10 +20,16 @@ Worldview.DataDownload.BulkDownloadPage = (function() {
};
ns.show = function(selection, type) {
- var page = window.open(pages[type], 'Worldview_' + new Date());
+ var nonce = Date.now();
+ var page = window.open(pages[type] + "?v=" + nonce,
+ 'Worldview_' + new Date());
+
page.onload = function() {
fillPage(page, selection, type);
};
+ setTimeout(function() {
+ fillPage(page, selection, type);
+ }, 10);
};
var fillPage = function(page, selection, type) {
diff --git a/src/js/Worldview/DataDownload/WgetPage.js b/src/js/Worldview/DataDownload/WgetPage.js
deleted file mode 100644
index 1e82f8202..000000000
--- a/src/js/Worldview/DataDownload/WgetPage.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * NASA Worldview
- *
- * This code was originally developed at NASA/Goddard Space Flight Center for
- * the Earth Science Data and Information System (ESDIS) project.
- *
- * Copyright (C) 2013 United States Government as represented by the
- * Administrator of the National Aeronautics and Space Administration.
- * All Rights Reserved.
- */
-Worldview.namespace("DataDownload");
-
-Worldview.DataDownload.WgetPage = (function() {
-
- var ns = {};
-
- ns.show = function(selection) {
- var storage = {};
- $.each(selection, function(name, product) {
- storage[name] = {
- list: product.list,
- name: product.name,
- noBulkDownload: product.noBulkDownload || false
- };
- });
- localStorage.wget = JSON.stringify(storage);
- var text = window.open('pages/wget.html', 'Worldview_' + new Date());
- };
-
- return ns;
-
-})();
diff --git a/src/pages/curl.html b/src/pages/curl.html
index f52c13fc4..308f48f07 100644
--- a/src/pages/curl.html
+++ b/src/pages/curl.html
@@ -18,6 +18,7 @@
<div id="netrc-instructions">
<p>
Add the netrc entries listed above to the following file:
+ </p>
<ul>
<li>Windows: <code>_netrc</code> file found in your home
folder.
@@ -27,6 +28,7 @@
home directory.
</li>
</ul>
+ <p>
Replace <code>URS_USER</code> with your URS user name and
<code>URS_PASSWORD</code> with your URS password. If this file does
not exist, create a new one. Ensure that you are the only
diff --git a/src/pages/wget.html b/src/pages/wget.html
index 1f810d62a..22c809201 100644
--- a/src/pages/wget.html
+++ b/src/pages/wget.html
@@ -18,6 +18,7 @@
<div id="netrc-instructions">
<p>
Add the netrc entries listed above to the following file:
+ </p>
<ul>
<li>Windows: <code>_netrc</code> file found in your home
folder.
@@ -27,6 +28,7 @@
home directory.
</li>
</ul>
+ <p>
Replace <code>URS_USER</code> with your URS user name and
<code>URS_PASSWORD</code> with your URS password. If this file does
not exist, create a new one. Ensure that you are the only
@@ -39,9 +41,9 @@
save it as "links.txt"<br/>
2) Execute the following command to download all of your
requested files:
+ </p>
<pre>
wget --input-file=links.txt</pre>
- </p>
<div id="indirect-instructions">
Some items that you have selected do not directly link to a
data file. Visit the following links and manually download each