How to read text file when I click an action on the add-on popup?
Hi,
I am using following function in my .js file but response is not received after clicking the action:
function insertMenuEntries() {
var xhttp = new XMLHttpRequest(); xhttp.open("GET", "file:///C:/Users/pragrawal/Desktop/Menu_Entries.txt", false); xhttp.send(); document.querySelector('p').innerHTML = xhttp.responseText;
}
Regards, Pradeep
Hi,
I am using following function in my .js file but response is not received after clicking the action:
function insertMenuEntries() {
var xhttp = new XMLHttpRequest();
xhttp.open("GET", "file:///C:/Users/pragrawal/Desktop/Menu_Entries.txt", false);
xhttp.send();
document.querySelector('p').innerHTML = xhttp.responseText;
}
Regards,
Pradeep