[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-beginners
Subject:    Re: activity indicator
From:       David Precious <davidp () preshweb ! co ! uk>
Date:       2014-09-28 13:23:37
Message-ID: 20140928142337.69d0da52 () columbia
[Download RAW message or body]

On 27 Sep 2014 19:44:22 -0000
sharda <sharda.g2011@gmail.com> wrote:

>  retrieving the information from the DB in this time delay i.e the
> time it takes to fetch the data from the server i have to show an
> ajax activity indicator how can i do this.

First off, if your DB query is taking long enough to require a progress
indicator, you're probably writing horribly inefficient queries, and
could just make them run much quicker by proper use of indexes etc.

However, if you do need an indicator but don't need it to be an actual
progress bar as such (just showing that something's going on, as
opposed to how far through it is), then if you're using Javascript and
AJAXy stuff, just fire off the request to the server to fetch data via
AJAX, display a spinner, and when the response arrives, hide the
spinner and process the response data.


-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic