VintaSoft Barcode .NET SDK v10.0
saveState Method
Vintasoft.Shared Namespace > WebImageCollectionJS type : saveState Method
Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
Function that will be executed if request is failed.
Here is function prototype "function __error(data)".
The data parameter can be:
  1. An object with following properties:
    • errorMessage: Error message.
    • blocked: Indicates that the requested action is blocked by another request.
    if exception is catched inside web service.
  2. Otherwise, jqXHR object.
Instance of Shared.WebServiceJS class, which allows to manage an image collection.
This parameter is optional.
Web service specified by the Shared.WebServiceJS.defaultImageCollectionService property will be used if this parameter is not specified.
Function that sends an asynchronous request to a server for saving state of image collection on server.
Syntax
var instance = new Vintasoft.Shared.WebImageCollectionJS();
var value; // Type: any
value = instance.saveState(successFunc, errorFunc, service);
function saveState( 
   successFunc : object,
   errorFunc : object,
   service : object
) : any;

Parameters

successFunc
Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
errorFunc
Function that will be executed if request is failed.
Here is function prototype "function __error(data)".
The data parameter can be:
  1. An object with following properties:
    • errorMessage: Error message.
    • blocked: Indicates that the requested action is blocked by another request.
    if exception is catched inside web service.
  2. Otherwise, jqXHR object.
service
Instance of Shared.WebServiceJS class, which allows to manage an image collection.
This parameter is optional.
Web service specified by the Shared.WebServiceJS.defaultImageCollectionService property will be used if this parameter is not specified.
Browser Compatibility
9
5
11
5
See Also

Reference

WebImageCollectionJS type