My web service involves a lot of database (PHP, mySQL) activity, which leaves the user staring at a blank screen for many seconds.
The user clicks a link on an HTML page, which calls a javascript function, which in turn calls AJAX, which invokes a PHP script, and then returns.
I’d like to display an IOS-like Activity Indicator, perhaps as a “subview,” if possible to show the user something is happening.
Any help is appreciated.
All you have to do is write “Loading…” somewhere that gets overwritten or removed by the AJAX callback.
Although… “many seconds”? I run a site with hundreds of users online at any given moment with lots of server-side activity, and I almost never get a page load time over 0.2 seconds…