On Thu, May 31, 2018 at 7:35 PM, Mohammed Noor <
snm...@gmail.com> wrote:
> Hello Guys,
>
> I currently have a process running on my django application which takes about 10-15 minutes to complete.
>
> Currently, the user clicks on a 'submit' button and this process starts. The web page remains in a hung state for the complete time this process takes to run and after say 10-15 mins another 'results' page is displayed.
>
>
> I want to be able to display a page saying 'please wait for <lenght of time taken to complete process>' after submit button is clicked. Can you please give me any ideas on how to implement this.
The way I have dealt wth this is to define something in the template like this:
<span class='loadMsg' style='display: none; color:lightgray;
text-align: left;'> ... loading images </span>
$('.loadMsg').show();
And then in window.onload function:
$('.loadMsg').hide();