MY working HTML page written using VB Script, here on click of Button document gets opened . CreateObject is working fine here .
Sub Opensig_OnClick()
Dim laccno
Dim accno
laccno = txtaccno.value
Set sigobj = CreateObject("Wrsrv.Document")
reStatus = sigobj.Verify(laccno,amt,1)
End Sub
But I have to write code in JSP in which ActiveXObject is not working. Code Written by me:
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);
}
here on click of button , function Opensig_OnClick is called . but I am getting error at line var sigobj= new ActiveXObject("Wrsrv.Document"); that Automation Server can't create object