Have a look here too: http://kb.mozillazine.org/Implementing_XPCOM_components_in_JavaScript
This page has a complete example that should work. HTH, nikitas mlabs wrote: > I followed this line by line .. and I still can't get it to work : > > http://developer.mozilla.org/en/docs/How_to_Build_an_XPCOM_Component_in_Javascript > > first, firefox tells me the test page i am about to run is 'trying to do > something unsafe'... (or words to that effect) > > then I get the usual 'component has no properties' exception... > > Q: where exactly do the two files HelloWorld.xpt and HelloWorld.js go??? > There is an extensions folder in two places .. one under Program > Files/Mozilla Firefox and another under the user profile (%APPDATA%) .. > which one?? > > Q: if my CLSID is {E76BD954-F0E7-4f8d-90E4-977B03D342B7} am I correct that > under one of the extensions folders, I must then create a new folder > 'E76BD954-F0E7-4f8d-90E4-977B03D342B7' and copy the XPT and JS files into > that? > > Q: I found compreg.dat and xpti.dat in the profile folder - deleted them - > restarted firefox.. no joy. > > what gives? _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
