This demonstrates xmlhttprequest, using jQuery to simplify things, to return server-side data without reloading the page

Please wait
Loader

This will replace update from server with ajax call