Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

How to read text file when I click an action on the add-on popup?

  • Akukho zimpendulo
  • 1 inale nkinga
  • 1 view
more options

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