mozdev.org

Lazy Man's Hello World Javascript Component Instructions
by Eric Murphy

Are you a lazy Windows user who wants to make the Hello World JavaScript Component? Were you scared away by Pete's instructions because you are not a UNIX hacker?

If so, then have I got a deal for you! You can get yourself that component without all the hassle. I have created a zip file that has everything you need to get you started. Just unstuff it into your Mozilla bin.

OK, so what is included in this great package special?

base\libIDL-0.6.dll - needed to compile the IDL
base\glib-1.2.dll - ditto
base\'a whole bunch of c, cpp, h, idl, o, in and other files'

Now that you are setup, here is what you have to do to finish the deal:

  1. Copy xpidl.exe into \base. You are going to run this from console, so get it ready, pointing inside this directory.

  2. create the nsIHello.idl and nsHello.js files as shown in Pete's notes. Put nsIHello.idl in \base.

  3. From console, enter this: xpidl -m typelib -w -v -I -o nsIHello.idl

  4. Now there will be an nsIHello.xpt in \base. Copy that and nsHello.js into the bin\components folder.

  5. Test your interface as specified in Pete's notes. Use bin/xpcshell.exe to enter those commands and stuff.

That's all! Should we shake on it?

User Notes: [?]

If you do not get a response to a question posted in this forum, please try sending a message to the project's mailing list or to the project owner directly.

[1] Submitted by: Marius on Thursday February 22nd 2001

Where can I get the xpidl.exe for W32? I tried to compile it, but makefile.win have references to some ../../rules.mak and things like this are very common to everything I try to compile from Mozilla.org. I've downloaded whole mozilla 0.8 source but this does not help, it always misses some files. Even directory names does not match to documentation, e.g. public now is base. Maybe you should update these things sometimes? Or place a version number?

[2] Submitted by: Raghunath Mukundan on Thursday July 19th 2001

Me too is stuck with the XPIDL.exe compilation. The Rule.mak file is giving problem for me also. please tell me where can i get the XPIDL compiled one so that I can Directly use the same.

Please Reply ASAP mraghunath@yahoo.com

[3] Submitted by: dirk on Friday January 3rd 2003

great work! - dl /

[4] Submitted by: adsf on Saturday February 22nd 2003

bb

[5] Submitted by: Diseño on Monday March 17th 2003

Hi from Spain!!

[6] Submitted by: buscadores on Thursday March 20th 2003

test

[7] Submitted by: jonh on Friday April 11th 2003

testing 1...2..3..testing

[8] Submitted by: Diseño web on Friday April 18th 2003

This is a very nice site, pleasant layout and design. My compliments to your designer.

[9] Submitted by: John on Friday April 18th 2003

Thanks you for the web, it is what I needed to complete my work.
You do a very good work and you must feel proud of it.

[10] Submitted by: Alex on Sunday May 11th 2003

mozdev.org is a great site

[11] Submitted by: harlad on Thursday May 15th 2003

hello world


http://www.suchmaschinenoptimierung-webpromotion.de/

[12] Submitted by: Idoweb on Sunday May 18th 2003

Thx, Eric. Very useful

[13] Submitted by: complejo on Monday May 19th 2003

good site

[14] Submitted by: motilla on Monday May 19th 2003

hi from spain

[15] Submitted by: adwod on Monday May 19th 2003

corious

[16] Submitted by: bullibula on Tuesday May 27th 2003

not able to download the zip file from the ftp site:(

[17] Submitted by: shilmar on Monday June 30th 2003

can't download

[18] Submitted by: Busca Inmobiliarias on Thursday July 3rd 2003

/
inmobiliaria en Argentina, España, Bolivia, Chile, Brasil, Costa Rica, Colombia, Cuba, Ecuador, El Salvador, Estados Unidos, Guatemala, Honduras, México, Panamá, Paraguay, Perú, Portugal, Puerto Rico, República Dominicana, Uruguay, Venezuela, ...

[19] Submitted by: Alojamiento web on Thursday July 3rd 2003

Thanks you

[20] Submitted by: Alta en Buscadores on Thursday July 3rd 2003

Le registramos su página web en principales buscadores..

[21] Submitted by: Marc on Wednesday July 16th 2003

Hi.

http://www.geocities.com/marc_schmidt_fl/

[22] Submitted by: skd on Friday July 25th 2003

thanks got it working!
http://www.skunked.co.uk

[23] Submitted by: Posicionamiento Web on Saturday July 26th 2003

Posiciona tu web.

[24] Submitted by: Tarjetas de visita on Saturday July 26th 2003

Compra las mejores tarjetas de visita.

[25] Submitted by: Atnova elearning on Tuesday July 29th 2003

congratulations for your site

Atnova elearning

atnova:: software para educacion y formacion a distancia

[26] Submitted by: James on Saturday August 2nd 2003

Hope it works.

[27] Submitted by: directorio on Sunday August 3rd 2003

ok

[28] Submitted by: Kalle on Wednesday August 20th 2003

Nice Project.

Greetings Kalle

[29] Submitted by: Diseño web español on Thursday August 21st 2003

Congratulations for your great job.

Héctor Gomis diseño web estudio

[30] Submitted by: Alex on Sunday August 31st 2003

Nice project!

[31] Submitted by: Gloryhole on Tuesday September 2nd 2003

Great tutorial!

[32] Submitted by: Joe on Thursday September 4th 2003

Very useful


-----

[33] Submitted by: Thalea on Friday September 5th 2003

Hi, I like the contents of your site,
enjoying to surf within your site.
til then

[34] Submitted by: Jean Marc on Friday September 5th 2003

Hi, thanks a lot for this site...
Go on like this and enjoy !

[35] Submitted by: Max on Saturday September 6th 2003

Wow , very interesting site , nice work , congrats !

[36] Submitted by: Diseño on Monday September 8th 2003

This site its very cool! /

[37] Submitted by: Diseño web on Monday September 8th 2003

Very great site!

[38] Submitted by: Jose on Thursday September 11th 2003

Very good project

[39] Submitted by: Mary on Thursday September 11th 2003

Good luck

[40] Submitted by: JB on Monday September 15th 2003

Very interesting information.
/

[41] Submitted by: Berberecho on Monday September 15th 2003

I just surfed in and found your site, I really enjoyed the visit and hope to come back soon. nice Site!

[42] Submitted by: Educoweb on Monday September 15th 2003

Hello, I just wanted to say you have a very informative site which really made me think, Thanks !

[43] Submitted by: Abel on Wednesday September 17th 2003

Congratulations for your site!

[44] Submitted by: jims on Tuesday September 23rd 2003

Your work is very interesting.

Questions or comments not answered in the FAQ can be submitted from our feedback page.
Copyright © 2000-2018. All rights reserved. Terms of Use & Privacy Policy. Arrr ?