Application Framework Reference

Module API

isPageLoadComplete()

The isPageLoadComplete() method gets the page loaded status.

Note: This module is not intended to be overridden.

Synopsis

status = isPageLoadComplete()

Return Value

Boolean

Page loaded status indication:

true = Page loading is complete.

false = Page loading is not complete.

Example

applyContext: function(context) {
    if (this.isPageLoadComplete()) {
        var search = context.get("search");
        var fieldsIntention = search.getIntentionReference("setfields");
        if (fieldsIntention) {
            this.selectedFields = [];
            var fields = fieldsIntention["arg"];
            for (var i=0; i<fields.length; i++) {
                var field = fields[i];  
                if (field.charAt(0)!=="_") {
                    this.selectedFields.push(field);
                }  
            }  
            this.setSelectedFieldList(this.selectedFields);
            this.pushContextToChildren();
            return true;
        }  
    }  
},
 

See Also

markPageLoadComplete()
onLoadStatusChange()
applyContext()