Hi I'm trying to write a loading script that displays a loading image while 
the django backend queries i have written are exectuting. This is to say i 
have some very complicated sql queries i call mannually with python by 
watching for specific post from the webpage to execute different queries. I 
want to display a loading while the query is executing one of them takes 
upwards of a minute because it is looking through very large amounts of 
data.

Right now I have 

<script type="text/javascript">$(document).ready(function(){        
$('#loading').hide();    });$('#queryForm').on("submit", function () {    
$('#loading').show();});</script>


This is to say that while the page is loading it will be displayed and when 
the document is ready it will hide it. 
However it doesn't show the div tag when I click any of my buttons.

 <form method='post' action='' id='queryForm'> <input type='submit' 
name='customer_licenses' value='License Summary' class="btn btn-success 
btn-block"> 
<input type='submit' name='compute_histories' value='Compute Histories' 
class="btn btn-success btn-block"> <input type='submit' 
name='customer_bandwidth' value='Customer Bandwidth' class="btn btn-success 
btn-block"> <input type='submit' name='customer_storage' value='Storage 
Summary' class="btn btn-success btn-block"> 

I don't understand why this isn't working any suggestions?






-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f4866469-6bc9-4e36-bdcb-f3d9fd1687df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to