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. ATL / WTL / STL
  4. Restricting a BHO

Restricting a BHO

Scheduled Pinned Locked Moved ATL / WTL / STL
questionalgorithmstestingbeta-testing
3 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.
  • M Offline
    M Offline
    macattack
    wrote on last edited by
    #1

    I have a Browser Helper Object that contains code I want to execute after a user logs into my website and only after logging into my website. What is the best way to start the code execution? I have thought of creating a hidden field named "start" on the web page and setting the field value to some unique string. Then searching for that field and testing the for the known value. Is there a cleaner solution. Thank you in advance for your suggestions.

    J 1 Reply Last reply
    0
    • M macattack

      I have a Browser Helper Object that contains code I want to execute after a user logs into my website and only after logging into my website. What is the best way to start the code execution? I have thought of creating a hidden field named "start" on the web page and setting the field value to some unique string. Then searching for that field and testing the for the known value. Is there a cleaner solution. Thank you in advance for your suggestions.

      J Offline
      J Offline
      Jason De Arte
      wrote on last edited by
      #2

      Well, you could just hook the browser events (onload,ondocumentcomplete,ect..) and then check the current document location before doing whatever you need to do.

      M 1 Reply Last reply
      0
      • J Jason De Arte

        Well, you could just hook the browser events (onload,ondocumentcomplete,ect..) and then check the current document location before doing whatever you need to do.

        M Offline
        M Offline
        macattack
        wrote on last edited by
        #3

        Yes but if I did that my url would need to be hardcoded. I have a product that I will be marketing and as a result mey be host on a variety of web sites. I guess I could create a hidden field and set the value to some string like: {2F94BC6A-9E91-4010-B991-EA0E22F9FED4} and test for it. But I was hoping there would be a cleaner solution.

        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