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 / C++ / MFC
  4. Catch javascript event in CHtmlView

Catch javascript event in CHtmlView

Scheduled Pinned Locked Moved C / C++ / MFC
questionjavascriptalgorithms
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.
  • _ Offline
    _ Offline
    _Flaviu
    wrote on last edited by
    #1

    Is there possible to catch inside CHtmlView a javascript event (I mean when a dropdown menu is down) ? In a site, on a searching box, if I type some letters, there is a dropdown menu which show me the result of my search ... and I have to programmatically select a link there... but if I put this site inside my CHtmlView, how can I know if this dropdown menu is down, and so the searching has been complete ?

    _ A 2 Replies Last reply
    0
    • _ _Flaviu

      Is there possible to catch inside CHtmlView a javascript event (I mean when a dropdown menu is down) ? In a site, on a searching box, if I type some letters, there is a dropdown menu which show me the result of my search ... and I have to programmatically select a link there... but if I put this site inside my CHtmlView, how can I know if this dropdown menu is down, and so the searching has been complete ?

      _ Offline
      _ Offline
      _Flaviu
      wrote on last edited by
      #2

      Or, how can I simulate an Enter key inside of that searching box ... is there possible ?

      _ 1 Reply Last reply
      0
      • _ _Flaviu

        Is there possible to catch inside CHtmlView a javascript event (I mean when a dropdown menu is down) ? In a site, on a searching box, if I type some letters, there is a dropdown menu which show me the result of my search ... and I have to programmatically select a link there... but if I put this site inside my CHtmlView, how can I know if this dropdown menu is down, and so the searching has been complete ?

        A Offline
        A Offline
        Afzaal Ahmad Zeeshan
        wrote on last edited by
        #3

        Maybe this SO thread would be able to help you with this, [javascript - CHtmlView: How to get data on click? - Stack Overflow](https://stackoverflow.com/questions/6215010/chtmlview-how-to-get-data-on-click).

        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

        _ 1 Reply Last reply
        0
        • A Afzaal Ahmad Zeeshan

          Maybe this SO thread would be able to help you with this, [javascript - CHtmlView: How to get data on click? - Stack Overflow](https://stackoverflow.com/questions/6215010/chtmlview-how-to-get-data-on-click).

          The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

          _ Offline
          _ Offline
          _Flaviu
          wrote on last edited by
          #4

          The best way to solve the issue is to simulate "Enter" key on that searching box ... I don't know how to do that :)

          1 Reply Last reply
          0
          • _ _Flaviu

            Or, how can I simulate an Enter key inside of that searching box ... is there possible ?

            _ Offline
            _ Offline
            _Flaviu
            wrote on last edited by
            #5

            This is not good idea, because when the app doesn't have the focus, this trick doesn't work ...

            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