Appframe Knowledge Base


1 hits
0

How to show busy indicator

// Shows a "busy" indicator and returns a function that hides it:
var hideIndicator = af.controls.working("Doing lengthy operation...");

// Normally you'd call hideIndicator() in the complete/error function
// of jQuery.ajax, pCallBack/pOnError in af.data.execProcedure, etc.
// Here we just call it after 3000 milliseconds:

var afterWorkComplete = function() {
	hideIndicator();
}

setTimeout(afterWorkComplete, 1000);

common web · Perma link post comment Posted by: Jarl Erik Schmidt (10-mai-2012)