Ciao a tutti sto avendo un problema con una richiesta XMLHttpRequest, questo è il code:
anche se vi è del testo nel file txt non mi da nullacodice:var xhttp = window.XMLHttpRequer ? new XMLHttpRequest : new ActiveObject("Microsoft.XMLHTTP"); xhttp.open("GET", "https://www.xxxxxxxxxx.it/txt/data.txt", true); if(xhttp.onresystatechange = function(){ if(xhttp.readyState == 4){ let data = shttp.responseText; alert(data); } } xhttp.send(null);