Okay. Thanks, but now I'm running into this problem. The first AJAX request updates a file via post and the second one reads the file via get. For some reason the reading of the file only works once, when the page first loads, after that it doesn't read the updated data unless I close the browser and open my page again. Why is this and how can I fix it?
The browser is probably reading cached data, which you should be able to prevent by sending a randomly-generated parameter in the read request.