0

The script below returns a ReferenceError: notifs is not defined.

Ideas greatly appreciated.

var xhttp = new XMLHttpRequest();

xhttp.onreadystatechange = function()
{
    if (this.readyState == 4 && this.status == 200)
    {
        notifs = this.responseText;         
    }
};

xhttp.open("GET", "Space/notifs.php", true);
xhttp.send();
notif = notifs.split(",");
Komal12
  • 3,340
  • 4
  • 16
  • 25
BusyLM
  • 1
  • 2

0 Answers0