Eric Del Sesto

Hi everyone. It's pretty clear that a BHO (Browser Helper Object) can be written using C++/ATL, but I was wondering:

1) Can a BHO be written entirely in Javascript (if yes, can you recommend links to examples or docs )

2) Can a BHO be written (mostly) in Java What I mean is, even if a little C++/ATL "glue" is required, could most of a BHO be written in Java The MSDN docs are focused on languages that Microsoft prefers, and I cannot find any references to extensions / plug-ins / add-ons / add-ins / BHOs written in Java.

Note that I am specifically interested in a BHO, meaning code which the user installs into the browser as an Add-On/Extension, and which can run as each web page is loaded. I'm not talking about an ActiveX-style control which is specifically loaded on request by the web page. Hope I've got the terminology right.

Thanks,

Eric



Re: Internet Explorer Extension Development Writing a BHO in Java / JavaScript / C++

IECUSTOMIZER

Hi,

Have a look at the Alexa toolbar, it uses a COM BHO and a html/js toolbar. Most Firefox extensions are all java.

Regards.






Re: Internet Explorer Extension Development Writing a BHO in Java / JavaScript / C++

Eric Del Sesto

Thanks Rob. I looked up Alexa, but it does not appear to be open-source, and its Developer Site does not provide any information on how it was implemented, so I can't learn from it. And I'm more interesting in seeing if it is possible to write a BHO in JavaScript or Java (with a little bit of COM as glue), than I am in writing one purely in COM.

I should have explained that my reason for wanting most of the BHO's code to be Java/JavaScript, is so I can re-use most of it in a similar extension for Firefox (with Firefox-specific C++ glue). I'd like to avoid writing a COM BHO for IE and then re-writing that all over again for Firefox. 95% of the code in this BHO will be focused on its processing of data, and only 5% will be dealing with the specific browser.

Thanks,

Eric





Re: Internet Explorer Extension Development Writing a BHO in Java / JavaScript / C++

IECUSTOMIZER

Hi Eric,

Find and download reshacker.exe to view the internals of the Alexa toolbar, though you are right, the method does not lend itself easily to cross-browser compatibility.

I am thinking that you may be better off writing an extension rather than a BHO. Have a look at some bookmarklets for both IE and Firefox at http://www.squarefree.com/bookmarklets/forms.html

With only slight modification you can modify these bookmarklets to IE Toolbar buttons (hint: use external.menuArguments to get a hook into the hosting IE Web Browser, you can then reference the DOM)

Regards.






Re: Internet Explorer Extension Development Writing a BHO in Java / JavaScript / C++

Eric Del Sesto

Thanks again, Rob.

Eric