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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. InvokeMemeber("click") on a messagebox

InvokeMemeber("click") on a messagebox

Scheduled Pinned Locked Moved C#
questionphp
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.
  • U Offline
    U Offline
    User 4414712
    wrote on last edited by
    #1

    I am loading my homepage where I have a MessageBox where i either can push "OK" or "Cancel". How can I now invoke a click on the OK buttom ? The function where the messagebox appears is looking like: function messagebox (){ var del = confirm("Do you want to continue?"); if (del == true){ var loc="continue.php"; window.location=loc; } } Best regards Mads

    S 1 Reply Last reply
    0
    • U User 4414712

      I am loading my homepage where I have a MessageBox where i either can push "OK" or "Cancel". How can I now invoke a click on the OK buttom ? The function where the messagebox appears is looking like: function messagebox (){ var del = confirm("Do you want to continue?"); if (del == true){ var loc="continue.php"; window.location=loc; } } Best regards Mads

      S Offline
      S Offline
      Shyam K Pananghat
      wrote on last edited by
      #2

      All message boxes will return a value indicating the button clicked. In Javascript it should be a boolean (True or false). Whereas in code like C# or VB (Windows) it will be a DialogueResult Enum value which will denote the result received

      Shyam.. My Blog dotnetscoups.blogspot.com

      U 1 Reply Last reply
      0
      • S Shyam K Pananghat

        All message boxes will return a value indicating the button clicked. In Javascript it should be a boolean (True or false). Whereas in code like C# or VB (Windows) it will be a DialogueResult Enum value which will denote the result received

        Shyam.. My Blog dotnetscoups.blogspot.com

        U Offline
        U Offline
        User 4414712
        wrote on last edited by
        #3

        And how can I then manipulate it to think that I clicked? SetAttribute, InvokeMember ? Or smth else?

        J 1 Reply Last reply
        0
        • U User 4414712

          And how can I then manipulate it to think that I clicked? SetAttribute, InvokeMember ? Or smth else?

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          On a webpage? if so you're S.O.L.

          U 1 Reply Last reply
          0
          • J J4amieC

            On a webpage? if so you're S.O.L.

            U Offline
            U Offline
            User 4414712
            wrote on last edited by
            #5

            S.O.L. ? But yes, it is on a webpage, which is running on a webbrowser client in my application.

            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