Add help text to say downloads do not use server RAM
authorKarl O. Pinc <kop@karlpinc.com>
Mon, 30 Sep 2024 00:24:47 +0000 (19:24 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Mon, 30 Sep 2024 00:24:47 +0000 (19:24 -0500)
src/pgwui_sql/static/sql_edit.js
src/pgwui_sql/templates/sql_edit.mak

index 9ecac76d540bfd79905bc650ab8f10851e567a0f..d8828caf85d9bc8a6047ff3bdcf4d19bb7289943 100644 (file)
@@ -80,6 +80,14 @@ function attachEvents() {
               + '  Data containing tab characters will introduce'
               + ' spurious/extra columns.'
             ));
+    document.getElementById('download_help_id')
+        .addEventListener("click", () =>
+            window.alert(
+              "Downloading does not put SQL results in the webserver's RAM,"
+              + " or your browser's RAM,"
+              + ' so downloading may be able to return larger data sets'
+              + ' than on-screen display.'
+              ));
 }
 
 attachEvents();
index 7ce75d8a706b1520ae3bba69fe000fec7ad18274..c509e09b963dd050911e5c512056e9f669671b64 100644 (file)
       <tr>
         ## Download
         <%self.lib:td_label for_id="download_id">
-          Download
+          Download<span id="download_help_id" class="help">?</span>
         </%self.lib:td_label>
         <%self.lib:td_input tab_index="${tab_index}">
           <input name="download"