Interface with user using VBScript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rmurgia
    New Member
    • May 2008
    • 63

    Interface with user using VBScript

    I would like to ask the user if they really want to delete the record before continuing. I am able to display the message, but do not know how to get the user response:

    strMsg = "This record will be deleted. Do you wish to continue?"
    Response.Write( "<" & "script language=VBScri pt>")
    Response.Write( "MsgBox """ & strMsg & """,VBYesNo,""K PI Analysis""<" & "/script>")

    In MS Access I would issue the following code and test the intResponse variable:

    intResponse = Msgbox (strMsg,VBYesNo ,”KPI Analysis)
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    It might be easiest to do this with javascript, when the user hits submit give them a confirmation box. If they confirm, then continue to the form handler.

    Jared

    Comment

    • rmurgia
      New Member
      • May 2008
      • 63

      #3
      Originally posted by jhardman
      It might be easiest to do this with javascript, when the user hits submit give them a confirmation box. If they confirm, then continue to the form handler.

      Jared
      Ok. I'll try that. Do you know where I can get a sample code?

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Originally posted by rmurgia
        Ok. I'll try that. Do you know where I can get a sample code?
        no, but you can post in the javascript forum.

        Jared

        Comment

        Working...