in reply to Re^2: File download using mod perl
in thread File download using mod perl

There is no easy way to do two things at once with HTTP. I recommend you learn about HTTP and do not "lock the page" at all then.

Also read Watching Long Processes Through CGI for an idea how you could still have the "operation in progress" thing on the page. But note that most browsers will show a separate progress bar for the download anyway. There is no need to block the user from working with your website just because a download is in progress.

Replies are listed 'Best First'.
Re^4: File download using mod perl
by sathya_myl (Acolyte) on May 18, 2012 at 14:30 UTC

    Thanks for the response corion. The page lock is not only for the download, it happens for all the requests you do in the webpage.

    Moreover, I'm looking for other download options. If you are able to share some, that will be great.

      Please learn about how HTTP works and how it interacts with Javascript and the DOM.

      Your idea of "page locking" does not mix with downloads, because these do not replace the current page in the browser. This has nothing to do with Perl and is not fixable from Perl. This is a problem that you have because you use Javascript. Do not "lock the page" when downloading a file.