Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
> if ($('#loading').visible()) { //if #loading not visible show it, > prevent default, set timer to re-submit. > > it *might* actually work if you use this condition instead if($('#loading').is(':visible')) { -- You received this message because you are subscribed to the Google Group

Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
On Monday, August 4, 2014 12:12:43 PM UTC-4, G Z wrote: > > > > I don't understand why this isn't working any suggestions? > This probably seems like a django issue, but it's not. When you submit a form, the current document becomes old news. Browser posts the form data and waits for new page

Re: Javascript loading while executing backend python query.

2014-08-05 Thread shmengie
On Monday, August 4, 2014 12:12:43 PM UTC-4, G Z wrote: > > > > $('#queryForm').on("submit", function () {$('#loading').show();}); > > > However it doesn't show the div tag when I click any of my buttons. > According to jquery docs; http://api.jquery.com/submit/ $('#queryForm').submit

Re: Javascript loading while executing backend python query.

2014-08-04 Thread Collin Anderson
You are saying you have a div with id="loading" with the image in it that is not being shown? loading image here -- 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

Javascript loading while executing backend python query.

2014-08-04 Thread G Z
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.