On Thu, May 31, 2018 at 7:35 PM, Mohammed Noor <snmk...@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();

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY7NxXWWqLS6KSbeiB%2BXUd8iA3ZbErOsyOoP2CwejYpTPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to