开发者

Code Sign Javascript to use 'new ActiveXObject()' / 'GetObject()'

I've got a javascript file that uses

excel = GetObject("", "Excel.Applica开发者_JAVA技巧tion"); 

to hook a current running instance of excel, however it requires me to drop my security settings super low. How do I go about code-signing a javascript file to at least cause a security prompt instead of just failing? Google-ing keeps getting me results for signing custom activex controls, .dlls, and .exes but all I need is the built-in function approved.

On a related note

http://msdn.microsoft.com/en-us/library/7tf9xwsc%28v=vs.94%29.aspx

"The GetObject function is not supported in Internet Explorer 9 standards mode or later."

What is the proper method for accessing a currently running application in IE9 then?


There is no way to do that; there's no "code signing" mechanism for JavaScript.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜