Welcome !
         

 Onclick event

Author Message
reloader

  • Total Posts : 72
  • Scores: 0
  • Reward points : 0
  • Joined: 9/5/2005
  • Status: offline
Onclick event Tuesday, July 31, 2007 10:27 PM (permalink)
0
Hi All!

How can I solve, that an onclick event call a procedure, written in vbscript?

I tried this one, but only works in IE:

 <!--begin-->
 <script language="vbscript">
 sub cmdBtn_Click()
 msgbox("Click!!!")
 end sub
 </script>
 <input type="button" name="cmdBtn" value="Click Me!" onclick ="vbscript:cmdBtn_Click">
 <!--end-->
 

I red about client side event, and server side procedures, but not so clearly...

Can anyone help me?

Thanks
 
#1
    mcds99

    • Total Posts : 519
    • Scores: 4
    • Reward points : 0
    • Joined: 2/28/2006
    • Status: offline
    RE: Onclick event Tuesday, September 04, 2007 8:16 AM (permalink)
    0
    It works for me at least in an hta
    Sam

    Keep it Simple Make it Fun KiSMiF
     
    #2
      webber123456

      • Total Posts : 58
      • Scores: 0
      • Reward points : 0
      • Joined: 9/20/2007
      • Status: offline
      RE: Onclick event Friday, September 21, 2007 2:26 AM (permalink)
      0
      only IE supports clientside vbscript.  Others support javascript for clientside
       
      #3
        robszar

        • Total Posts : 193
        • Scores: 0
        • Reward points : 0
        • Joined: 2/27/2005
        • Location:
        • Status: offline
        RE: Onclick event Tuesday, September 25, 2007 5:49 AM (permalink)
        0
        you need to add language="VBScript"


        <input type="button" name="cmdBtn"
        language="VBScript" value="Click Me!" onclick ="vbscript:cmdBtn_Click">
         
        #4
          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 1 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2014 ASPPlayground.NET Forum Version 3.9