Hello,

Just wonder if somebody can tell me how to check this Ajax function's
status in template. Here is what I have.

In my views.py there is an Ajax function

def ajaxTable_traffic(request, pid, ...):
............

return HttpResponse("cacheHashCallback_traffic"..)

-----------------------------------------------------------------------------------
"cacheHashCallback_traffic(...)" is a javaScript function in template.
Now there is another function "checkStatus(...)" in javaScript. In
order to run some scripts in this function, it needs to know the
status of "cacheHashCallback_traffic(...)" .  something is like
following

function checkStatus(...)
{
      check status of cacheHashCallback_traffic(...)
      if its status == 4
          do some stuff
      else
          wait until cacheHashCallback_traffic(...) has finished
running then do some stuff
}


Can anybody tell me how to check the running status of
"cacheHashCallback_traffic(...)"?

Thanks so much.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to