Re: Implementing components in JS ?

Pete Collins <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Stefan Frasch wrote:
> Hi,
> 
> Is there anywhere an article or tutorial which shows and describe how I have
> to implement components in JavaScript ?
> 
> I want to implement an interface in JS because then I'am able to call JS
> functions from inside my plugins via XPConnect.
> 
> Some documentation I have found describes only implementing components in
> C++. The way I call methods of these component (via Interface) I have
> understand. But nowhere I have found something about implementing components
> in JS.
> 
> Thanks ...
> 
> 

Try here:

http://www.mozdev.org/notes/hello_world_js_component.html

And here:

http://lxr.mozilla.org/seamonkey/source/xpcom/sample/

Look at nsSample.js

--pete
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.