Req.ready((event) => { Req.post("php/movie.php", "action=getMovies&test=2", function (dta) { console.log(dta); for (const ii in dta.data) { document.getElementsByClassName("mediawrapper").item(0).insertAdjacentHTML('beforeend', `
${dta.data[ii].url}
`); } }); });