I want to refresh the particular div after the file download page appear. I have tried both synchronous and asynchronous way of ajax call. but It refresh the page before the file download page appear. I am writting the file download using servlet response stream. Is there any way to refresh the page after the file download page appear. Is there any other event in request other than onReadyStateChange
Thanks in advance