How to pass array of byte from javascript to ActiveX
I want to call method of an ActiveX BOOL GetMinutiaeData(const VARIANT FAR& MinutiaeData)
and here's my calling javascript:
var data = new Array();
document.getElementById("objFP").GetMinutiaeData(data);
alert(document.getElementById("objFP").ErrorString);
the ErrorString is "Invalid Parameter". anyone has answe开发者_开发技巧r?
I guess Scripting.Dictionary is what you need:
var y = new ActiveXObject("Scripting.Dictionary");
y.add (0, "a");
y.add (0, "b");
document.getElementById("objFP").SetArrayProp(y.Items());
精彩评论