Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
None response from a function http in JS

I'm coding a request HTTP in a JS function, but it not work (none message in console, none response, none data). Though, is not my first time in request HTTP, but I not find the error i n my code. Can you enlighten me ? Here is my code :

function dmd_art(){
  var httpRequest = getHttpRequest();
  httpRequest.onreadystatechange = function () {
    if (httpRequest.readyState === 4){
      document.getElementById('annimation_loader').style.display = 'none';
      document.getElementById('aff_pub').innerHTML = httpRequest.responseText;
    }  
  }
  httpRequest.open('GET', 'includes/article.php', true)
}

getHttpRequest() is a function to adapted XMLHttpRequest to all web browsers

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!