Hi all,
I got one dll(name
KioskPinPad) ,so from JavaScript I need to call a function(GenPinBlock) which is in dll.
Kindly help me out to find a solution.
Previously they were using some
dynamicwrapperx dll..it is nt working in windows 7..so they asked to call directly.. Here is code for it.
<html>
<script language="javascript">
function Transmit_click(){
try{
DX = new ActiveXObject("DynamicWrapperX"); // Create an object instance.
DY = new ActiveXObject("DynamicWrapperX"); // Create an object instance.
alert("Initialising DLLPath");
var DLLPath="";
try{
var wshshell = new ActiveXObject("wscript.shell");
DLLPath = wshshell.ExpandEnvironmentStrings("%DLLPATH1%");
}catch(err){
alert("Error in getting DLL Path "+err.description);
}
DY.Register(DLLPath+"/kioskCardReader", "SwipeCard", "r=s");
DX.Register(DLLPath+"/kioskPinPad", "DownloadWorkKey", "i=s","r=s");
DX.Register(DLLPath+"/kioskPinPad", "GenPinBlock", "i=ss","r=s");
PinBlock = DX.GenPinBlock("",CardDetails);
Thanks in advance.