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

372
Views
XMLHttpRequest getting data from php How to load on html div and level

please someone help me to solve this problem.

i am getting data with XMLHttpRequest from php as json array, here is the data.

Data I am getting from php

with this Codes

const API_PATH = 'http://localhost/api/';
window.onload = function(){
var request = new XMLHttpRequest();
request.onreadystatechange = function() {
document.getElementById("all_service").innerHTML = this.responseText;

};

request.open('GET', API_PATH + 'getServices.php');
request.send(null);
}

how to load on div and level

<div id="all_service">
    <label class="service-name">Service Name</label>
    <label class="service-description">description</label>
    <label class="service-offers">deals</label>
    <img   class="service_image" src="img/service1.png">
</div>
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!