VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Shared Namespace / WebRequestJS type / WebRequestJS Constructors / WebRequestJS Constructor(string,function,function)
Syntax BrowserCompatibility SeeAlso
In This Topic
    WebRequestJS Constructor(string,function,function)
    In This Topic
    Initializes a new instance of the WebRequestJS class.
    Syntax
    // Parameters
    var actionName; // Type: string
    var successFunc; // Type: function
    var errorFunc; // Type: function
    var ajaxParams; // Type: object
    var isAsync; // Type: boolean
    
    var instance = new Vintasoft.Shared.WebRequestJS(actionName, successFunc, errorFunc, ajaxParams, isAsync);
    
    
    function WebRequestJS(
    actionName
    Action name.
    : string,
    successFunc
    Function that will be executed if request is executed successfully.
    : Function,
    errorFunc
    Function that will be executed if request is failed.
    : Function
    ) : WebRequestJS;

    Parameters

    actionName
    Action name.
    successFunc
    Function that will be executed if request is executed successfully.
    errorFunc
    Function that will be executed if request is failed.
    Browser Compatibility
    9
    See Also