"pete collins" <[EMAIL PROTECTED]> schrieb ...
> Here is a doc for doing a Hello World js component. (Stolen from
> nsISample)
>
> http://www.mozdev.org/notes/hello_world_js_component.html
How can I test this JS component inside an exisiting browser like
Netscape 6 or Beonex 0.6? I tried using this JS code:
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var sample = Components.classes["@mozilla.org/sample;1"].createInstance();
sample = sample.QueryInterface(Components.interfaces.nsIHello);
dump("sample = " + sample + "\n");
But I get a JS error:
Components.classes["@mozilla.org/sample;1"] has no properties.
Is there a test HTML page for the above mentioned nsIHello component
out there?
TIA - Regards, Tobias Trelle
--
CyCo Systems GmbH & Co. KG >>> http://www.cycosys.com/