BiAbstractLoader

This abstract class defines the minimal interface for supporting loading

This class extends BiEventTarget and therefore all methods and fields available for BiEventTarget are also available for BiAbstractLoader .

Constructor

new BiAbstractLoader ( )

Parameters

No parameters.

Properties

Name Type get set Descripton
async Boolean checked checked Whether to load the text file asynchronously
error Boolean checked Whether any error occured when loading the file
loaded Boolean checked Whether the file has been loaded
loading Boolean checked Whether a file is currently being loaded
supportsSync Boolean checked checked Whether the loader supports loading the file synchronously

Methods

Name Description
abort Stops the loading of the current file
load Does an HTTP GET to recieve the file

Events

Name Type Bubbles Descripton
load BiEvent Fires when the file has been loaded

Static Methods

None.

Static Fields

None.

Remarks

Using synchronous loading freezes the web browser while the loading takes place. This should be prevented as much as possible and therefore asynchronous loading is preferred.

Method Details

abort

Stops the loading of the current file

Syntax

object.abort
 (
 
 )
 

Parameters

No arguments.

Return Type

void

load

Does an HTTP GET to recieve the file

Syntax

object.load
 (
 
 )
 

Parameters

No arguments.

Return Type

void