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

NameTypegetsetDescripton
asyncBooleancheckedcheckedWhether to load the text file asynchronously
errorBooleancheckedWhether any error occured when loading the file
loadedBooleancheckedWhether the file has been loaded
loadingBooleancheckedWhether a file is currently being loaded
supportsSyncBooleancheckedcheckedWhether the loader supports loading the file synchronously

Methods

NameDescription
abortStops the loading of the current file
loadDoes an HTTP GET to recieve the file

Events

NameTypeBubblesDescripton
loadBiEventFires 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