Hi all,
I'm wanting to make a download progress bar with javascript that actually measures the percentage of the file that's being loaded. My question is:
Are there any functions in JS that can extract the total size of the file and the currently downloaded size of a file. Flash has functions such as getBytesTotal() and getBytesLoaded() to measure these types of statistics for a downloading movie clip. Setting aside the logistical problems of having a progress bar appear before the page loads, am I foolish in hoping that there is some sort of JS mechanism for measuring a file's vital signs?
I'm wanting to make a download progress bar with javascript that actually measures the percentage of the file that's being loaded. My question is:
Are there any functions in JS that can extract the total size of the file and the currently downloaded size of a file. Flash has functions such as getBytesTotal() and getBytesLoaded() to measure these types of statistics for a downloading movie clip. Setting aside the logistical problems of having a progress bar appear before the page loads, am I foolish in hoping that there is some sort of JS mechanism for measuring a file's vital signs?