Ximi Elga


Now it’s time to look at the WebLock component as another example of XPCOM components (since you’ll be creating it shortly). This is a book about Gecko, and about creating XPCOM components for Gecko- based applications. Though the emphasis is on the practical steps you take to. About. This is a step-by-step tutorial on creating, building and registering an XPCOM component on Linux and MS Windows.

Author: Arashizilkree Dirg
Country: Namibia
Language: English (Spanish)
Genre: Software
Published (Last): 13 February 2011
Pages: 205
PDF File Size: 10.61 Mb
ePub File Size: 16.86 Mb
ISBN: 864-9-99069-476-5
Downloads: 89937
Price: Free* [*Free Regsitration Required]
Uploader: JoJogul

Is there any version dependency of firefox on gecko-sdk. Gift ideas you can order online and still get in time.

Implementing XPCOM components in JavaScript

I am getting the error: Look in the JavaScript console to check for errors. On Linux I changed the makefile to link in libxpcom. After yet another long coding night I found out, that the sample works with firefox 1. After changing the make file componetns, I am not able to register the component in linux. A module is an object that is used to register, unregister and provide factories for classes. Can anyone help me out. That, along with many of the other tips xcpom got me up and running successfully.


I had to add firefox dir to my path for nspr4. First of all, thanks for the tutorial.

Especially, how to run this example on Linux. First a huge and great thank you for the “hello world” because the “official” weblock example is really too complex to make it works. Contract IDs use the concept of namespaces to identify themselves, so it’s important to precede your Contract ID with ‘ mozilla.

It works for me. Are there these big componebts in firefox??

I tried using both gecko-sdk 1. I tried to make it an extension instead, packaging the DLL and xpt file inside the components directory I imitated ColorZillabut same result Now It works thx Sam Lie. I thought it should be so easy This is used to simplify the process of retrieving the module later in class creation. Thanks for any help! I found out that i was using the wrong gecko-sdk version Gecko 1.

The browser will be aware of your components upon start-up, and register them in the component list. The make files did’nt work for me. I second the comment of G. Please review our terms of service to complete your newsletter subscription. You can add more realistic logic or functions to support the application you want to develop. I haven’t tried it on linux. So, I turn it of for now.


About the above, never mind Classes can be constructed using several programming languages, including: They are components, interfaces, modules, and factories. To get this example working, you need to save the source code to the component under “nsMyComponent. On the other hand the final componeents http: Thanks for the sample, it works great for me with ff 1. The reverseIt method is declared, specifying its return type and the parameter it accepts.

Implementing XPCOM components in JavaScript – MozillaZine Knowledge Base

Though I linked it by specifying the path of these files in the make file, but the link flags are not being located by the nmake utility.

If anyone is having problems, eg getting unresolved references than check this webpage http: Multiple classes can be defined in a file. Five major challenges facing Apple in I was getting the “Components. These three layers are required, and each creatinv requires certain methods as you can see in Listing A.

I can’t wrap this up into an extension.