MozillaZine

Last browser window standing

Talk about add-ons and extension development.
Ravjot
 
Posts: 10
Joined: November 14th, 2006, 2:44 pm

Post Posted May 25th, 2009, 2:03 pm

There's an excellent tutorial here:

http://www.iosart.com/firefox/xpcom/

ankit428
 
Posts: 95
Joined: November 10th, 2008, 2:14 pm

Post Posted May 25th, 2009, 2:19 pm

Seems nice but its in C++, while i work in Javascript :( !!
Thanks anyways.. :)

Ravjot
 
Posts: 10
Joined: November 14th, 2006, 2:44 pm

Post Posted May 25th, 2009, 2:38 pm


ankit428
 
Posts: 95
Joined: November 10th, 2008, 2:14 pm

Post Posted May 25th, 2009, 4:01 pm

Thanks Ravjot, But i have already created a skeleton of my component ... i am able to get "hellloworld" message ..!!
but, i do not know how to go further...in solving my base problem...of ensuring a single socket (which is created through an extension) amoong many FF windows.. :( !!

If any one can help...plz...

trevor_h
 
Posts: 64
Joined: December 21st, 2007, 1:14 am

Post Posted May 26th, 2009, 4:00 pm

You may wish to have a look at how this extension does it: https://addons.mozilla.org/en-US/firefox/addon/1253

ankit428
 
Posts: 95
Joined: November 10th, 2008, 2:14 pm

Post Posted May 26th, 2009, 4:13 pm

Thanks for the link,
but the above makes use of XHR to get the data.. :(
While i want to host a serversocket in my extension !!

trevor_h
 
Posts: 64
Joined: December 21st, 2007, 1:14 am

Post Posted May 27th, 2009, 10:16 pm

You would use your current code for the server socket, the bit you are after is how to use the observer for profile-after-change so your code only runs once.

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 1 guest