I'm using node.js with the express.js framework and EJS to handle the templates.
Here's my route:
Basically, modern browsers implement a class called
XMLHttpRequest object and use it to execute the
post request to your server. Use the same
XMLHTTPRequest object to listen for the server response, then do whatever you want with the response, such as updating a
You tagged this question with ajax so I guess you already know about it, but you didn't mention or ask anything about it in your question. There are tons of examples of this kind of thing online, e.g. here that you can try. There's also jQuery.ajax() which you might find easier to use than native AJAX.