Re:How to manage HTML DOM with vanilla JavaScript only?
by leetrout on Thursday April 02, 2020 @09:40AM
(#22758806)
It still doesn't go POST in a nice way like the jQuery API does BUT it is not worth bringing jQuery to the page just for making requests with slightly nicer syntax.
Re:How to manage HTML DOM with vanilla JavaScript only?
by untog on Thursday April 02, 2020 @09:56AM
(#22758960)
What’s not nice about POST?
fetch(url, {
method: “POST”,
body: “a body”
})
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
Only big downside is no IE11 support but thankfully I don't have to worry about that so much these days.