cancelFromPrepareAjax = function(
sender,
sourceClass,
sourceMethod,
settings
)
static cancelFromPrepareAjax(
sender: Object,
sourceClass: string,
sourceMethod: string,
settings: JQueryAjaxSettings
): boolean;
sender
The source object to pass along to listeners of the prepareAjax event.
sourceClass
The source class, as a string, to use as PrepareAjaxEventArgs.sourceClass.
sourceMethod
The source method, as a string, to use as PrepareAjaxEventArgs.sourceMethod.
settings
A JQueryAjaxSettings
object that contains the request information for an upcoming AJAX call.
true if PrepareAjaxEventArgs.cancel is true, indicating the AJAX should be cancelled; otherwise false.
cancelFromPrepareAjax provides a wrapper for the common task of raising a prepareAjax event with a new PrepareAjaxEventArgs instance and returning the value of PrepareAjaxEventArgs.cancel after any prepareAjax listeners were called.
sender is used directly with the invocation of the event and provided as the first argument in the registered listener. sourceClass, sourceMethod, and settings are used as arguments to the constructor of PrepareAjaxEventArgs, which becomes the second argument in the registered listener.
cancelFromPrepareAjax is useful for writing custom AJAX requests that need to run through prepareAjax.
See prepareAjax for more information.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document