Try creating an iframe and using the file name as the src. This allows
you to listen to the onload event on the iframe too. this is useful if
your trying to initiate a large server-generated file download, which
might take some time, and you want to show a loader image.

something like below might work.

var dwnldCtr = 0;
function getCurrentView(){

        var src = '/path/to/your/file.ext';
        var frame = '<iframe id=\"download_'+dwnldCtr+'\" src=\"'+src+'\"
        Event.observe('download_'+dwnldCtr, 'load', function(){ $
('linkId').removeClassName('loading'); });

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to