The following tables list the members exposed by ImageLoader.
Public Constructors
Name | Description | |
---|---|---|
ImageLoader | Initializes a new ImageLoader. |
Public Methods
Name | Description | |
---|---|---|
abort | Aborts the current ImageLoader while guaranteeing that callbacks for Done, Fail, and Always will not be run. | |
dispose | Clears the ImageLoader instance. | |
run | Runs the ImageLoader. |
Public Properties
Name | Description | |
---|---|---|
ajaxOptions | An ImageLoaderAjaxOptions object to use when loading an image via AJAX. | |
ajaxWithCredentials | Indicates whether to send credentials with the XMLHttpRequest for an image. | |
canRun | Indicates whether the ImageLoader instance can be run. | |
element | The loaded image element, when Run is successful. | |
error | An error describing the reason for the image load failure from Run. | |
height | The height of the successfully loaded Element. | |
imagesHolder | The HTML Element to use for temporary image loading, when necessary. | |
imgCrossOrigin | Indicates how to handle cross-origin image requests. | |
isAborted | Indicates that the ImageLoader has been aborted. | |
isHTMLImageElement | Indicates if Element exists and is an HTMLImageElement. | |
isWorking | A boolean indicating whether the ImageLoader is trying to load an image. | |
processAjaxData | A callback used to access binary data from an ImageLoaderUrlMode.ajaxDataUrl response. | |
tag | A reference object to distinguish ImageLoader instances. | |
url | The URL to load for the image request. | |
urlMode | Represents the type of loading that will occur when Run is called. | |
width | The width of the successfully loaded Element. | |
workingImageElement | The HTMLImageElement used in the image request. | |
xhr | The XMLHttpRequest object used in the image data request. |
Public Events
Name | Description | |
---|---|---|
always | Occurs after either the Done or Fail event handlers have fired. | |
done | Occurs when the image has loaded successfully. | |
fail | Occurs when the image has failed to load. | |
preRun | Occurs when the Run method is called, sending out ImageLoaderPreRunEventArgs. | |
PreSend | Occurs before an image request is made, sending out ImageLoaderPreSendEventArgs. |
Public Fields
Name | Description | |
---|---|---|
DefaultAjaxWithCredentials | Indicates the default for AjaxWithCredentials. | |
DefaultImgCrossOrigin | Indicates the default for ImgCrossOrigin. |
See Also