webMethods and Intelligent Business Operations 10.2 | Designing and Implementing Composite Applications | webMethods CAF and OpenCAF Development Help | User Interface Controls Concepts | Client-Side Libraries | CAF.Progress Class
 
CAF.Progress Class
CAF can display a progress bar over any HTML element. The CAF.Progress.overlay(element, msg) method overlays a progress bar over an HTML element, whereas the CAF.Progress.insert(element, msg) method replaces the element's content with a progress bar. The CAF.Progress.show(element, msg) method decides for you whether to overlay or insert the progress bar. It inserts the progress bar if the element isn't large enough to contain the progress bar, by enlarging the element to the necessary size, or it overlays the bar. The CAF.Progress.hide(element) method hides the progress bar.
For example, the following line of JavaScript overlays a progress bar over the entire page:
CAF.Progress.overlay(document.body, "Please wait...");
The next line hides that progress bar:
CAF.Progress.hide(document.body);

Copyright © 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release