Hi,
Hmm... vielleicht hat er über die
fetch
-API geschrieben. Damit wird aus…const request = new XMLHttpRequest('GET','/fetch') request.send() request.addEventListener('load', _ => document.querySelector('#bar').innerHTML = request.responseText)
…so etwas hier:
fetch('/foo').then(response => document.querySelector('#bar').innerHTML = response.text())
das hätte dann aber nichts mit PHP zu tun, sondern doch wieder mit Javascript.
So long,
Martin
--
Nothing travels faster than the speed of light with the possible exception of bad news, which obeys its own special laws.
- Douglas Adams, The Hitchhiker's Guide To The Galaxy
Nothing travels faster than the speed of light with the possible exception of bad news, which obeys its own special laws.
- Douglas Adams, The Hitchhiker's Guide To The Galaxy