Seeing if anyone has any ideas on a better way to do this...

I've got a view that has a button. When the user presses the button,
an ajax call is made to one of my functions in a controller. This
function runs several large database queries. Currently, it returns
the results (simple small amount of html text) stating whether each
one was successful or not - but it doesn't return the results until
all are complete.

As you can guess, the user is sitting there for awhile waiting for
some sort of response.

Is there anyway to make a call from the function in the controller to
return the response of each query after it happens rather than waiting
until they all run? No view is necessary to render here, again it's
just a small line of html text (i.e. in Red saying failed or green
saying passed). The AJAX call just appends the output to a div.

I've thought about having a function for each DB query and then
calling the next function after the first one runs in the controller,
but I only get 'None' as a response so something isn't quite right in
that regards...

Thanks in advance!

-rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to