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

Thanks for the response corion. The whole page is designed using mod_perl. The page lock refers to displaying a small alert saying "operation in progress". You can't execute any other work until the previous request is completed.

Whenever i tried to execute a javascript without download code, the page is responding as expected. But when i include the download code into the script, that's creating the issue.

Replies are listed 'Best First'.
Re^3: File download using mod perl
by Corion (Patriarch) on May 18, 2012 at 14:24 UTC

    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.

      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.