I highly recommend using Nixysa http://code.google.com/p/nixysa/ , which wraps NPAPI. Online:
Nixysa is a structure written in Python that automatically generates glue code for NPAPI plugins (plugins for browsers such as Google Chrome or Firefox), allowing you to easily expose C ++ Classes for Javascript from a simple IDL view. Nyxis was originally conceived for the needs of O3D, but flexible enough to support a wide range of use cases.
Try
Check the code following the instructions here and try the sample in the examples / complexes.
The sample includes a Visual Studio 2005 project.
source share