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. General Programming
  3. C#
  4. How to execute javascript function from BHO

How to execute javascript function from BHO

Scheduled Pinned Locked Moved C#
csharpjavascripthelptutorial
5 Posts 3 Posters 0 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.
  • M Offline
    M Offline
    MAP Tiger
    wrote on last edited by
    #1

    Hi I have developed a toolbar which needs to invoke a javascript function based on some criteria on specific web page. To be simple, I want to know how to invoke javascript from BHO(using C#). I have done everything already but just this one needs help. Thanks in anticipation Mujtaba Panjwani

    C 1 Reply Last reply
    0
    • M MAP Tiger

      Hi I have developed a toolbar which needs to invoke a javascript function based on some criteria on specific web page. To be simple, I want to know how to invoke javascript from BHO(using C#). I have done everything already but just this one needs help. Thanks in anticipation Mujtaba Panjwani

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      We have an ASP.NET forum.

      MAP Tiger wrote:

      I want to know how to invoke javascript from BHO(using C#).

      You need to do some reading, you obviously don't know what ASP.NET is, or what it does. Specifically, C# runs on the server, js on the client. To run js code, you need to inject it into the page.

      Christian Graus Driven to the arms of OSX by Vista.

      M 2 Replies Last reply
      0
      • C Christian Graus

        We have an ASP.NET forum.

        MAP Tiger wrote:

        I want to know how to invoke javascript from BHO(using C#).

        You need to do some reading, you obviously don't know what ASP.NET is, or what it does. Specifically, C# runs on the server, js on the client. To run js code, you need to inject it into the page.

        Christian Graus Driven to the arms of OSX by Vista.

        M Offline
        M Offline
        MAP Tiger
        wrote on last edited by
        #3

        Hi Thanks for the reply. If you could read clearly what I said in my question which clearly states that I am running it from BHO (Browser Helper Object) which of course means that the javascript function is already injected in the code but when that specific page is loaded in the browser then the BHO has to invoke that specific javascript function. Regards,

        MAP Tiger Tiger Softwares Software Designer and Developer VB.NET, ASP.NET, VFP

        1 Reply Last reply
        0
        • C Christian Graus

          We have an ASP.NET forum.

          MAP Tiger wrote:

          I want to know how to invoke javascript from BHO(using C#).

          You need to do some reading, you obviously don't know what ASP.NET is, or what it does. Specifically, C# runs on the server, js on the client. To run js code, you need to inject it into the page.

          Christian Graus Driven to the arms of OSX by Vista.

          M Offline
          M Offline
          MAP Tiger
          wrote on last edited by
          #4

          Hi I would also like to mention that as I am working with BHO so I have the access to WebBrowser object and Document object. I think the solution has to be within these objects but dont know how... Regards,

          MAP Tiger Tiger Softwares Software Designer and Developer VB.NET, ASP.NET, VFP

          R 1 Reply Last reply
          0
          • M MAP Tiger

            Hi I would also like to mention that as I am working with BHO so I have the access to WebBrowser object and Document object. I think the solution has to be within these objects but dont know how... Regards,

            MAP Tiger Tiger Softwares Software Designer and Developer VB.NET, ASP.NET, VFP

            R Offline
            R Offline
            Rick Kirch
            wrote on last edited by
            #5

            Map Tiger, Did you ever get an answer to this? If so, do you have any code samples? Thanks,

            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