I have an app I made in node.js and it's posting data, mostly from a table, to the server using jquery's post method. The request is handled in app.js and it responds with an html string.

Example client-side code:
  form.attr("action"), //this is the url the form is posting to
  data, //this is an array of data made by using form.serializeArray() and pushing data from tables into it
  function(data){ alert(data) } //this is the success function that alerts the user with the response
Example server-side code:
app.post("/url", function(req, res){
  var name = body.request.name;
  res.writeHead(200, {'Content-Type': 'text/html'});
  res.write('Thank you, '+name+', your data has been posted.');
This works great, but what I would like to do is redirect the user to the url the form is posting to and display the message on that webpage. I can get it to redirect to the url inside the success function, but I can't get the response message written to it. Does anyone know how to do this?