I'm not quite sure what you need, but if it refreshes the page with the results of an AJAX call (which does not refresh or reload the page), you will have to use client-side JavaScript, jQuery load () or post () should be able to handle this.
Alternatively, if you are not using AJAX, but instead do the usual form submission, you have several options. First, you can save your redirects and use the Express / Connect Session to determine what is used to request a receipt, or two that you can replace by redirecting index.jade from another res.render and include the variable you want to change.
It should be understood that after any of these actions node.js refuses to control the web page in the browser, unless you specifically set up the architecture for communication. There are currently no controls in node.js to force updates to the page or updates to the client. Except for socket connections, or unless otherwise requested by the client itself (for example, in the first example using jQuery).
Zikes
source share