Adam Lock wrote:
Is it possible to write a service in Javascript? Even better, is it
possible to write a service in Javascript and have it replace an
existing service at runtime?

Adam

Here's a JS component which is a service, although not a very simple one
to understand:
http://mozdev.org/lxr/source/protozilla/pipella/proto/protozilla-service.js

I believe you can just register yourself with the same contractid as
another service to override it.

(I haven't yet figured out how to automatically initialize a JS service
when Mozilla starts. I have had to explicitly instantiate the service by loading
a special URL.)

Saravanan

--
http://xmlterm.org            [EMAIL PROTECTED]
 


Reply via email to