VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Shared Namespace / WebRequestJS type / WebRequestJS Constructors / WebRequestJS Constructor(string,function,function,object)
Syntax BrowserCompatibility SeeAlso
In This Topic
    WebRequestJS Constructor(string,function,function,object)
    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,
    ajaxParams
    Object that contains the request parameters.
    : object
    ) : 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.
    ajaxParams
    Object that contains the request parameters.
    Browser Compatibility
    9
    See Also