Last browser window standing

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

Re: Last browser window standing

Post by Ravjot »

There's an excellent tutorial here:

http://www.iosart.com/firefox/xpcom/
ankit428
Posts: 95
Joined: November 10th, 2008, 2:14 pm

Re: Last browser window standing

Post by ankit428 »

Seems nice but its in C++, while i work in Javascript :( !!
Thanks anyways.. :)
Ravjot
Posts: 10
Joined: November 14th, 2006, 2:44 pm

Re: Last browser window standing

Post by Ravjot »

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

Re: Last browser window standing

Post by ankit428 »

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

Re: Last browser window standing

Post by trevor_h »

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

Re: Last browser window standing

Post by ankit428 »

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

Re: Last browser window standing

Post by trevor_h »

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.
Locked