A nab of mine wants a IE9 BHO with superdrag.
The purpose of writing this article is just for a record. Though it is easy, the process of studing on it is not easy, which took me more one night to search related information. Also, the moment when worked it out is delightful.
First of all, thanks Tian Fang for his post. (Click here to link to his article)
He extended almost all the code for superdrag, the only thing perplexed me is it doesn't work anyway.
I tried to rewrite some code, a different way to get the same result and still can't solve this.
So I have to set some dialog to figure out what is the problem and found that it will fail when goes to
var rootElementEvents = document.documentElement as HTMLElementEvents_Event; rootElementEvents.ondragover += () => false; rootElementEvents.ondrop += () => { SuperDragDrop(); return false; };
After searching in Google, the reason is the object he used is not correct. We should use HTMLElementEvents2_Event object in this project. Just change it, build and install the BHO.
Have fun!
本文记录了作者为解决IE9浏览器BHO组件超级拖拽功能问题的过程。通过研究并修改现有代码,最终确定使用HTMLElementEvents2_Event对象解决了原有方案无法正常工作的问题。
339

被折叠的 条评论
为什么被折叠?



