Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Firefox plugin/extension development using C#

Firefox plugin/extension development using C#

Scheduled Pinned Locked Moved IT & Infrastructure
csharphelptutorialquestion
7 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Affan Toor
    wrote on last edited by
    #1

    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!

    L 1 Reply Last reply
    0
    • A Affan Toor

      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!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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!

      A 1 Reply Last reply
      0
      • L Lost User

        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!

        A Offline
        A Offline
        Affan Toor
        wrote on last edited by
        #3

        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!

        L 1 Reply Last reply
        0
        • A Affan Toor

          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!

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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 :)

          A 1 Reply Last reply
          0
          • L Lost User

            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 :)

            A Offline
            A Offline
            Affan Toor
            wrote on last edited by
            #5

            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!

            L 1 Reply Last reply
            0
            • A Affan Toor

              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!

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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.

              A 1 Reply Last reply
              0
              • L Lost User

                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.

                A Offline
                A Offline
                Affan Toor
                wrote on last edited by
                #7

                hhhummm....thanks alot, now i got some kind of start to search and digout. Regrads, Affan Ahmad toor

                .................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups