开发者

How can I use DDE with Javascript without using Active X?

开发者 https://www.devze.com 2023-01-19 21:21 出处:网络
I\'m trying to find a way to do the equ开发者_运维百科ivalent of comm = window.event.srcElement._command;

I'm trying to find a way to do the equ开发者_运维百科ivalent of

comm = window.event.srcElement._command;
if(comm){
    xlApp = new ActiveXObject("Excel.Application");
    var app = xlApp.DDEInititate(".....", "....");
    xlApp.DDEExecute(app,comm);
    xlApp.DDETerminate(app);
    app = "";
    xlApp.Quit();
}

without the use of an activeX object. Are there any frameworks out there that can accomplish this?


Pure JavaScript can't communicate with other applications or shared libraries.

EDIT: You might be able to do it with a [Java applet] (with extra permissions), and there are ways to communicate between Java and JavaScript.

0

精彩评论

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