Cancel submit?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe C.

    #1

    Cancel submit?

    Is there a way to cancel the submit process from the client using vbscript?


  • Joe C.

    #2
    Re: Cancel submit?

    Sorry for my ignorance. Currently all I have is a Button_OnClick sub. I am
    prompting the users if the want to proceed. If yes then the form is
    submitted otherwise if no.


    "Steve C. Orr, MCSD" <Steve@Orr.ne t> wrote in message
    news:%23F3mDxwS DHA.2724@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > Return false from your vbscript function
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD
    > http://Steve.Orr.net
    >
    >
    > "Joe C." <nospam@nospam. com> wrote in message
    > news:OxHH8gwSDH A.2316@tk2msftn gp13.phx.gbl...[color=green]
    > > Is there a way to cancel the submit process from the client using[/color]
    > vbscript?[color=green]
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • Steve C. Orr, MCSD

      #3
      Re: Cancel submit?

      Here's some server side code that outputs javascript that will do the trick:
      myDeleteButton. Attributes.Add( "onclick", _
      "return confirm('Are you sure you want to delete?');")

      Or if you insist on VBScript you could use the Msgbox Function.
      If the return value is vbOK (1) then document.Form1. submit()

      --
      I hope this helps,
      Steve C. Orr, MCSD



      "Joe C." <nospam@nospam. com> wrote in message
      news:OBf$M8wSDH A.1576@TK2MSFTN GP12.phx.gbl...[color=blue]
      > Sorry for my ignorance. Currently all I have is a Button_OnClick sub. I am
      > prompting the users if the want to proceed. If yes then the form is
      > submitted otherwise if no.
      >
      >
      > "Steve C. Orr, MCSD" <Steve@Orr.ne t> wrote in message
      > news:%23F3mDxwS DHA.2724@TK2MSF TNGP10.phx.gbl. ..[color=green]
      > > Return false from your vbscript function
      > >
      > > --
      > > I hope this helps,
      > > Steve C. Orr, MCSD
      > > http://Steve.Orr.net
      > >
      > >
      > > "Joe C." <nospam@nospam. com> wrote in message
      > > news:OxHH8gwSDH A.2316@tk2msftn gp13.phx.gbl...[color=darkred]
      > > > Is there a way to cancel the submit process from the client using[/color]
      > > vbscript?[color=darkred]
      > > >
      > > >[/color]
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...