开发者

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());
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜