Widget: DataExporter: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 52: Line 52:
                 const exportParams = new URLSearchParams();
                 const exportParams = new URLSearchParams();
                 exportParams.set('action', 'ask');
                 exportParams.set('action', 'ask');
                 exportParams.set('format', 'spreadsheet');
                 exportParams.set('format', 'csv');
                 exportParams.set('fileformat', formData.get('fileformat'));
                 // exportParams.set('fileformat', formData.get('fileformat'));
                 exportParams.set('query', exportUrl);
                 exportParams.set('query', exportUrl);


                 fetch('/api.php?' + exportParams.toString());
                 // fetch('/api.php?' + exportParams.toString());


                 const dl = document.createElement('a');
                 const dl = document.createElement('a');

Revision as of 10:18, 17 August 2023