Firefox plugin/extension development using C#
-
Hi everyone, I have developed a toolbar which will log and bookmark the web sites, i want to integrate it in firefox(2.0/3.0). is there any way i can do it? i have seen some material on XUL but i want to use my own toolbar built in C#...im new to browser plugin/extension development so please also tell me whether i should go for plugin or extension? if im going on wrong direction plz guide me. any kind of help is appriciated, Thanks in advance... Regards, Affan Ahmad Toor
.................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
-
Hi everyone, I have developed a toolbar which will log and bookmark the web sites, i want to integrate it in firefox(2.0/3.0). is there any way i can do it? i have seen some material on XUL but i want to use my own toolbar built in C#...im new to browser plugin/extension development so please also tell me whether i should go for plugin or extension? if im going on wrong direction plz guide me. any kind of help is appriciated, Thanks in advance... Regards, Affan Ahmad Toor
.................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
I'm not an expert on firefox extensions, but I have made one before to simply repeat the task of submitting a form, waiting for the page to load and then navigating to a new page and repeating, and from the docs I've read, I don't think it is possible to implement any C# code, only XUL and Javascript, but you can make the javascript run continuously, so maybe you should just recode your program in javascript and then look at some tutorials and documentation to complete it. Firefox allows you to write to files aswell (in extensions), so you should be able to implement all your functionality. Sorry if I missed something, if so just tell me!
-
I'm not an expert on firefox extensions, but I have made one before to simply repeat the task of submitting a form, waiting for the page to load and then navigating to a new page and repeating, and from the docs I've read, I don't think it is possible to implement any C# code, only XUL and Javascript, but you can make the javascript run continuously, so maybe you should just recode your program in javascript and then look at some tutorials and documentation to complete it. Firefox allows you to write to files aswell (in extensions), so you should be able to implement all your functionality. Sorry if I missed something, if so just tell me!
hi, thanks for reply, it cleared many confusions. now i will look into XUL to complete my task. i was not able to understand following statement, plz elaborate it..
earlywill wrote:
but you can make the javascript run continuously, so maybe you should just recode your program in javascript and then look at some tutorials and documentation to complete it.
thanks again... Regards, Affan Ahmad Toor
.................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
-
hi, thanks for reply, it cleared many confusions. now i will look into XUL to complete my task. i was not able to understand following statement, plz elaborate it..
earlywill wrote:
but you can make the javascript run continuously, so maybe you should just recode your program in javascript and then look at some tutorials and documentation to complete it.
thanks again... Regards, Affan Ahmad Toor
.................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
You need to use javascript for the backend, to check for pageloads and log it in a file and bookmark it (if this is how your toolbar works). This would run continuously in the background of the firefox browser, while the XUL would provide a frontend. It would create the toolbar and its buttons. You would add some javascript events to the buttons (like onclick) so that they call functions and do extra code. The continuous javascript backend is only needed if your toolbar does something to every page, like log and bookmark it. If your toolbar only uses buttons to do events manually, then the continuous javascript backend is not needed. I hope I cleared up the remaining confusions and that everything is understood now :)
-
You need to use javascript for the backend, to check for pageloads and log it in a file and bookmark it (if this is how your toolbar works). This would run continuously in the background of the firefox browser, while the XUL would provide a frontend. It would create the toolbar and its buttons. You would add some javascript events to the buttons (like onclick) so that they call functions and do extra code. The continuous javascript backend is only needed if your toolbar does something to every page, like log and bookmark it. If your toolbar only uses buttons to do events manually, then the continuous javascript backend is not needed. I hope I cleared up the remaining confusions and that everything is understood now :)
Thanks for quick response. things are clearer now, just one more question...! is it possible to create a desktop application like form using XUL? i want that when user clicks on toolbar button then a form opens where user can customize the settings and do other stuff and then save these settings in text file to be used in future against any particular web page. also can u refer to sample source code of any such extension built using XUL? that would be very helpful. Thanks again... Regards, Affan Ahmad Toor
.................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
-
Thanks for quick response. things are clearer now, just one more question...! is it possible to create a desktop application like form using XUL? i want that when user clicks on toolbar button then a form opens where user can customize the settings and do other stuff and then save these settings in text file to be used in future against any particular web page. also can u refer to sample source code of any such extension built using XUL? that would be very helpful. Thanks again... Regards, Affan Ahmad Toor
.................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
Yes, it is possible, for examples, install the chatzilla extension for firefox and join a few IRC networks. When you look in the settings, it has a tree menu which should contain individual preferences for each IRC server. Unfortunately, I cannot provide any source code for examples like it, but check the chatzilla homepage to see if they have any source code and find their settings dialogs, and you could try a google search for more tips. Hopefully this answers all your questions! For more help on extensions and XUL coding, search mozilla's developer site.
-
Yes, it is possible, for examples, install the chatzilla extension for firefox and join a few IRC networks. When you look in the settings, it has a tree menu which should contain individual preferences for each IRC server. Unfortunately, I cannot provide any source code for examples like it, but check the chatzilla homepage to see if they have any source code and find their settings dialogs, and you could try a google search for more tips. Hopefully this answers all your questions! For more help on extensions and XUL coding, search mozilla's developer site.
hhhummm....thanks alot, now i got some kind of start to search and digout. Regrads, Affan Ahmad toor
.................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!