PreSend Event

Summary

Occurs before an image request is made, sending out ImageLoaderPreSendEventArgs.

Syntax
TypeScript
JavaScript
Object.defineProperty(ImageLoader, 'preSend',  
	get: function(), 
	set: function(value) 
) 
static preSend: LeadEvent; 

Remarks

The PreSend static event handler is useful in situations where properties of many image requests must be changed or logged before each request is sent.

The ImageLoaderPreSendEventArgs.Cancel property, when set to true, will cause the Fail event to be called for the ImageLoader. This is different than the Abort method, which will "fail" silently and not call any callbacks.

PreRun is called after Run but before any configuration of the Xhr or WorkingImageElement. PreSend is a static event that is called by each ImageLoader after PreRun and after all properties (except the final HTMLImageElement.src property for ImageLoaderUrlMode.ImageUrl, as this would send the request) are set.

Event Data

ParameterTypeDescription
sendervarThe source of the event
eImageLoaderPreSendEventArgsThe event data

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly