views:

275

answers:

2

Hi !

I wrote a firefox plugin using C++ and used the <EMBED> to load it to html.

In javascript I got the embedded plugin by using document.getElementByID, but when I tried to call a plugin function, the function was undefined. Moreover, plugins constructors did not run while loading the page.

The same html file and plugin seems to work on some computers, while it doesnt work on others.

Does anyone have an idea what might by wrong? How can I debug such an issue?

A: 

My suggestion would be to use an object tag instead of <embed>. In my experience, doesn't seem to work as reliably.

If I had more information on how your plugin is structured (are you using XPCOM or npruntime?), I might be able to help more.

Taxilian