Raises a prepareAjax event and returns whether the AJAX should be cancelled.
The source object to pass along to listeners of the prepareAjax event.
The source class, as a string, to use as PrepareAjaxEventArgs.sourceClass.
The source method, as a string, to use as PrepareAjaxEventArgs.sourceMethod.
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.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries