I have a problem which is a bit hard to describe. I'm writing a script to update an online program that I built. To update, I download a tar.gz files, extract it and then replace all old files with the ones from the update. To keep the user updated about the update progress, I have a progress bar, which is updated using jQuery ajax. This is the progress step by step, after each step, the progress bar is updated:
An ajax call is made to download the update package
An ajax call is made to extract the package
An ajax call is made to replace all old files with new ones
Update is installed
My problem is, when the update process comes to step 3, I get a javascript error Failed to load resource: The request timed out.
.
I think that this is because I replace all javascript and php files as well.
How can I make this ajax call working, or some other nice way to update the progress bar while the update is busy being installed?