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. C# DLL Events Catching.

C# DLL Events Catching.

Scheduled Pinned Locked Moved C#
csharpjavascripthelp
5 Posts 2 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.
  • N Offline
    N Offline
    Navneet Hegde
    wrote on last edited by
    #1

    Hi! I have build C# DLL with few function and Registered it successfully and also consuming it through Javascript ActiveXObject. So far All is good. Now I want to raise one Event in C# Dll and want that event to be handled by Javascript Is that possible to catch event in Javascript which is thrown by C# DLL, If yes can you please help me. Thanks!

    Develop2Program & Program2Develop

    F 1 Reply Last reply
    0
    • N Navneet Hegde

      Hi! I have build C# DLL with few function and Registered it successfully and also consuming it through Javascript ActiveXObject. So far All is good. Now I want to raise one Event in C# Dll and want that event to be handled by Javascript Is that possible to catch event in Javascript which is thrown by C# DLL, If yes can you please help me. Thanks!

      Develop2Program & Program2Develop

      F Offline
      F Offline
      fly904
      wrote on last edited by
      #2

      You mean Ajax?[^] Have a look at this article[^] and how it gets the data from the server side using the Ajax.Net framework.

      hmmm pie

      modified on Tuesday, March 17, 2009 12:29 PM

      N 1 Reply Last reply
      0
      • F fly904

        You mean Ajax?[^] Have a look at this article[^] and how it gets the data from the server side using the Ajax.Net framework.

        hmmm pie

        modified on Tuesday, March 17, 2009 12:29 PM

        N Offline
        N Offline
        Navneet Hegde
        wrote on last edited by
        #3

        Thanks for your reply, But no this is not what I mean I want to raise an Event in C# DLL class and this should be Caught in Javascript Code

        var myObj
        myObj = new ActiveXObject("myDLL.myClass");
        myObj.myPropertyOne="value1";
        myObj.processValue();

        Now if I through Event with value 0 Then how can I get the Event in Javascript. Thanks!

        Develop2Program & Program2Develop

        F 1 Reply Last reply
        0
        • N Navneet Hegde

          Thanks for your reply, But no this is not what I mean I want to raise an Event in C# DLL class and this should be Caught in Javascript Code

          var myObj
          myObj = new ActiveXObject("myDLL.myClass");
          myObj.myPropertyOne="value1";
          myObj.processValue();

          Now if I through Event with value 0 Then how can I get the Event in Javascript. Thanks!

          Develop2Program & Program2Develop

          F Offline
          F Offline
          fly904
          wrote on last edited by
          #4

          Look, I just gave you an example of how to communicate between the C# and JavaScript. If you can't figure out how to do it then I suggest you do something else!

          Loop {
          response = checkValue();
          if (response != 0)
          Do Event
          wait(2 seconds).
          }

          hmmm pie

          N 1 Reply Last reply
          0
          • F fly904

            Look, I just gave you an example of how to communicate between the C# and JavaScript. If you can't figure out how to do it then I suggest you do something else!

            Loop {
            response = checkValue();
            if (response != 0)
            Do Event
            wait(2 seconds).
            }

            hmmm pie

            N Offline
            N Offline
            Navneet Hegde
            wrote on last edited by
            #5

            Thanks for your efforts, I will try other resources!

            Develop2Program & Program2Develop

            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