For a school project, I am to send JSON. The server processes this file and sends me back a response with a JSON. The whole thing should happen with JavaScript. I have now become aware of the XMLHttpRequest
, but don't quite understand it.
Do I have to create two objects with GET and POST or is it possible to combine them?
At the moment I have one var httpPost = new XMLHttpRequest();
to send and one to receive var httpGet = new XMLHttpRequest();