I have a web page where I am POSTing 2 images to a php script from a canvas through xmlhttprequest. If I wait for the 2 separate requests to finish everything is ok but if I navigate away from the page after the first one finished uploading the second one just doesn’t do anything I guess it simply stops.
My questions is do I have to keep the page open until both uploads are finished? I thought if an xmlhttprequest is started it will finish no matter what, even if you close the browser.
No – the xmlhttprequest is bound to the page you are currently on.
Add a callback to show the user when the process completes.