PDA

View Full Version : How to detect complete event on window.location



just_a_kid
30 Nov 2010, 9:03 AM
Hi,

Basically i have functionality to exportToExcell as below
1. upon click exportToExcell , the page should show loading.gif replacing the excell icon
2. exportToExcell then will use window.location to the server side URL
3. Server Side URL stream the excell file to the client that will prompt the dialog box for user to open/save
4. the loading.gif should go back to excell icon

how to do item no 4 ? How do i detect the window.location / dialog box has been shown up ?

Is there any other way to export server side excell that i can detect before and after event ?

Thanks

Condor
30 Nov 2010, 9:22 AM
Not possible. There is no event triggered when the download has finished.