in reply to File download using mod perl

Where does mod_perl come into play? Have you tried eliminating mod_perl?

Where does Javascript come into play? Does the problem persist if you eliminate Javascript from the problem?

What do you mean by "lock the page"? If this happens in Javascript, then this is a Javascript/browser problem, which cannot be solved with Perl on the server side.

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

    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.

      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.