Quantcast
Channel: AJAX with Vanilla Node.js/JavaScript – POST JSON without a form - Code Review Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by CertainPerformance for AJAX with Vanilla Node.js/JavaScript – POST...

Consider fetch In modern browsers, which your code is guaranteed to be running in, fetch is usually a better choice than XMLHttpRequest - fetch is Promise-based (Promises are usually a bit nicer to...

View Article



Image may be NSFW.
Clik here to view.

AJAX with Vanilla Node.js/JavaScript – POST JSON without a form

I am new to node.js, ajax, and asynchronous code. I’ve pieced together a working way to exchange json between browser and server and am wondering if someone with more experience considers the approach...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images