Click to See Complete Forum and Search --> : Detect download


doodler
05-21-2003, 09:51 AM
I have a page in my site that allows the user to change stylesheets (for IE users only) and when they choose the stylesheet IE downloads it, and says so on the status bar. If the user does not look at the status bar (or doesn't have it in view) they do not know that the stylesheet is downloading.

So would it be possible for javascript to detect a download of a stylesheet and display a loading alert such as

window.alert("Please wait while the stylesheet loads...");

AdamGundry
05-21-2003, 10:21 AM
You'd probably have to show the message from the same code that started the download, i.e. add the alert to the hyperlink or JS code that downloads the CSS file.

Wouldn't it just get annoying for visitors, though?

Adam

doodler
05-21-2003, 10:25 AM
i was using the alert as an example, and i am thinking of some sort of function that writes "Please Wait" in a table cell. i have a script that i can modify to accomplish this.

Just wondered if there was another way.