Jump to content


0Failed to load resource: the server responded with a status of 404 (Not Found)

a status of 404 (Not Found)

  • Please log in to reply
1 reply to this topic

#1 andrewmung



  • Member
  • Pip
  • 1 posts
  • Main OS: Windows 8.1

Posted 23 March 2018 - 11:39 PM

Dear All,


Please help to advise how to solve my simple problem which made me in trouble


i am an new learner of ajax and to try simple application as below:


 <!DOCTYPE html>

<h1>The XMLHttpRequest Object</h1>

<button type="button" onclick="loadDoc()">Request data</button>

<p id="demo"></p>

function loadDoc() {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
      document.getElementById("demo").innerHTML = this.responseText;
  xhttp.open("GET", "test.txt");



But there was error message of "Failed to load resource: the server responded with a status of 404 (Not Found)" which was shown by development tool of browser and pointed at "xhttp.send()"


After checking, the server should be working in normal condition


Attached please find the screenshot of messages which were generated by both of server and browser


Thank you for your kind attention



Attached Files

#2 simicartan


    Junior Member

  • Member
  • Pip
  • 12 posts
  • Main OS: Windows 10

Posted 26 July 2018 - 03:37 AM

i have the same issue as yours. 

maybe i came here too soon lol

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users