<div dir="ltr">Ciao a tutti,<div>nei suggerimenti mappa di Qgis  è possibile inserire anche codice js? sto facendo prove per visualizzare nel popup di lizmap un csv con la seguente funzione, ma per ora non ho risultati...</div><div>Qualche aiuto...grazie</div><div><br></div><div>Roberto</div><div><br></div><div><!DOCTYPE html><br><html><br><head><br>    <title>Visualizzazione CSV in HTML</title><br>        <script><br>                function caricaCSV() {<br>                        var xhr = new XMLHttpRequest();<br>                       xhr.open('GET', '<a href="https://myurl/file.csv">https://myurl/file.csv</a>', true);<br>                   xhr.onload = function() {<br>                             if (xhr.status === 200) {<br>                                     var righe = xhr.responseText.split('\n');<br>                                     var tabella = document.createElement('table');<br>                                        for (var i = 0; i < righe.length; i++) {<br>                                           var celle = righe[i].split(',');<br>                                              var riga = document.createElement('tr');<br>                                              for (var j = 0; j < celle.length; j++) {<br>                                                   var cella = document.createElement('td');<br>                                                     cella.appendChild(document.createTextNode(celle[j]));<br>                                                 riga.appendChild(cella);<br>                                              }<br>                                             tabella.appendChild(riga);<br>                                    }<br>                                     document.getElementById('contenuto').appendChild(tabella);<br>                            }<br>                     };<br>                    xhr.send();<br>           }<br>     </script><br></head><br><body onload="caricaCSV()"><br>   <h1>Contenuto CSV</h1><br>    <p>Il seguente contenuto CSV è stato pubblicato dalla risposta alla richiesta HTTP GET:</p><br>      <div id="contenuto"></div><br></body><br></html><br></div><div><br></div><div><br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>