Documentation

BX.ajax.load

void 
BX.ajax.load(
 array arObjects[,
 function finish_callback]
);

This function loads a resource queue and calls the callback handler. Queue description is an array of objects as follows:

{
    url: URL of the resource
    type: html|script|json|css – resource type
    callback: this resource loading handler (will not be called for the css type)
}

For each resource (except css), its own handler will be called, if defined. Upon completion of full queue, finish_callback handler will be called (without parameters)



© «Bitrix24», 2001-2024