Error processing SSI file
LEADTOOLS Documents

Show in webframe

Operations to contact the LEADTOOLS Documents Service return a jQuery Promise object that must be used to act on events from the service call. The done, fail, progress, and always methods are used to attach event handlers to events.

The Fail Callback

If an error occurs during any service call, the fail callback handler will execute all registered functions with the three parameters normally returned by a failed jQuery Ajax call:

If the error occurred within the Documents Service, all three of these parameters should have values. If the error occurred while parsing or delivering the data, only errorThrown, the third argument, will have a value. If a UploadFile service call was aborted using the special abort method, all of the parameters to the fail callback will be null.

The jqXHR object, if not null, may contain data used for creating a ServiceError object, which would include debugging information and messages to be displayed to the user. For more information, see ParseError.

The jQuery Promise object is a subset of the jQuery Deferred object. Refer to the jQuery documentation for more information on Promises and the Deferred object.

The PrepareAjax event occurs before any request made by the documents library client-side code to the server. This allows the user to examine or modify the parameters passed. The event data contains detailed information on the call as well as the JQueryAjaxSettings object being used. Any changes made to that object will be used in the request. For example, this will allow a user to modify the headers of any request to set authorization headers as they wish.

See Also

Reference

Documents Library Features
Documents Viewer Application
Loading Documents Using LEADTOOLS Documents Library
Uploading Using the Documents Library
Documents Library Coordinate System
Loading Encrypted Files Using the Documents Library
Parsing Text with the Documents Library
Barcode processing with the Documents Library
Loading Images in the Documents Library
Using LEADTOOLS Document Viewer

Error processing SSI file