开发者

Workaround for Internet Explorers java script block as control in WPF

For my project I need to show a 开发者_JS百科html file which uses JavaScript to render LaTeX code. This works fine, but everytime I open this file in the browser for the first time, the yellow band pops up that active code won't be executed until the user accepts so. This is annoying in this case, although I understand the purpose, however I want to mark my code as trusted! Do you have any idea how to "hack" the control to achieve the behavior I want? Or any other suggestions?


The solution ist really stupid as the security policy is badly implemented by Microsoft. Just add the comment<!-- saved from url=(0014)about:internet -->\r\n before everything else and the IE will recognize your local file as accessed from the internet and will then execute JavaScript code as wanted. But this is a better solution than hacking the registry...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜