On Fri, 19 Jan 2001 08:48:13 +1100, "Neil Hodgson"
<[EMAIL PROTECTED]> wrote:
> 5. Copy the XPTs to the components directory and the plugin to either the
>components or plugin directories or both - there may now be an official
>location that works but I've had this fail so many times I always copy to
>both.
XPCOM plugins are components and should be placed in the components
directory. xpt files are not read from the plugins directory. the
plugins directory is for 4x plugins.
> 6. From JS on HTML pages you may need to ask for privileges and use a
>long form of reference to talk to the interface.
>netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
>var me = document.theMe.IMe;
>me.hello();
Not necessary to specify the interface if the plugin implements
nsIScriptablePlugin - see the npsimple example plugin.
Isn't necessary to do the enablePrivilege bit either.