There's an excellent tutorial here:
http://www.iosart.com/firefox/xpcom/
Last browser window standing
-
- Posts: 95
- Joined: November 10th, 2008, 2:14 pm
Re: Last browser window standing
Seems nice but its in C++, while i work in Javascript !!
Thanks anyways..
Thanks anyways..
-
- Posts: 10
- Joined: November 14th, 2006, 2:44 pm
-
- Posts: 95
- Joined: November 10th, 2008, 2:14 pm
Re: Last browser window standing
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...
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...
-
- Posts: 64
- Joined: December 21st, 2007, 1:14 am
Re: Last browser window standing
You may wish to have a look at how this extension does it: https://addons.mozilla.org/en-US/firefox/addon/1253
-
- Posts: 95
- Joined: November 10th, 2008, 2:14 pm
Re: Last browser window standing
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 !!
but the above makes use of XHR to get the data..
While i want to host a serversocket in my extension !!
-
- Posts: 64
- Joined: December 21st, 2007, 1:14 am
Re: Last browser window standing
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.