Alternative of CreateObject of Vb is ActiveXObject in Javascript not working
<p>MY working HTML page written using VB Script, here on click of Button document gets opened . CreateObject is working fine here .</p>

<pre><code>Sub Opensig_OnClick()  
  Dim laccno  
  Dim accno  
  laccno = txtaccno.value  
  Set sigobj = CreateObject("Wrsrv.Document")  
  reStatus = sigobj.Verify(laccno,amt,1)
End Sub
</code></pre>

<p>But I have to write code in JSP in which ActiveXObject is not working. Code Written by me: </p>

<pre><code>function Opensig_OnClick(customerId) {
    var str;
    $.ajax({
        url: getContextPath() + "/app/omnidocupload/appDocument/sigcap/accountnumberforsalaryaccount/" + customerId,
        async: true,
        data: {
            custId: customerId
        },
        success: function(responseObject) {
            str = responseObject;
        }
    });
    var sigobj = new ActiveXObject("Wrsrv.Document");
    var reststus = sigobj.verify(str, 0, 1);
}
</code></pre>

<p>here on click of <strong>button</strong> , function  <strong>Opensig_OnClick</strong> is called . but I am getting error at line <strong>var sigobj= new ActiveXObject("Wrsrv.Document");</strong> that <strong>Automation Server can't create object</strong> </p>