Ask a Question related to Dreamweaver AppDev, Design and Development.
-
bthouin #1
Submit and Cancel
Hi guys,
And another very simple one. I actually stumbled for the 1st time on a
situation where I'd like to have 2 buttons on a form, one to indicate
"Yes, do it" (Submit) and one to indicate "No, forget it" (Cancel),
anlogous to a windows MsgBox dialog. The "Yes, do it" is a simple submit
button. But how do I do the "Cancel" function ? How do I know that the
user has clicked Cancel and not Submit, when the form has been submitted ?
I don't want to have to resort to radio buttons... Ah, BTW, can I have,
like for radio buttons, a "submit button group" with the same name, and
I can ask for the value (text) of the button with
Request.Form("button-name") ??
Thanks for help
Bernard
bthouin Guest
-
how to cancel a webservice?
HI, In my client application (a CSharp Windows App), I invoke a webservice function. Because these client applications are sometimes running... -
Cancel a Form
How can I close a form avoiding the data join in record source table? -
Cancel As Integer
If an event procedure include the argument Cancel As Integer, you can cancel the event with: Cancel = True For example, if you want to stop the... -
Cancel submit?
Is there a way to cancel the submit process from the client using vbscript? -
Cancel this post
Never mind, I just realized that I can process the input in the form rather than the textbox. God Bless, Mark A. Sam -
bthouin #2
Re: Submit and Cancel
>>can I have, like for radio buttons, a "submit button group" with the
same name, and I can ask for the value (text) of the button with
Request.Form("button-name")<<
Well. I just tried, and it works exactly that way. So I solved my
problem. Sorry to have bothered you...
Bernard
bthouin wrote:> Hi guys,
>
> And another very simple one. I actually stumbled for the 1st time on a
> situation where I'd like to have 2 buttons on a form, one to indicate
> "Yes, do it" (Submit) and one to indicate "No, forget it" (Cancel),
> anlogous to a windows MsgBox dialog. The "Yes, do it" is a simple submit
> button. But how do I do the "Cancel" function ? How do I know that the
> user has clicked Cancel and not Submit, when the form has been submitted ?
>
> I don't want to have to resort to radio buttons... Ah, BTW, can I have,
> like for radio buttons, a "submit button group" with the same name, and
> I can ask for the value (text) of the button with
> Request.Form("button-name") ??
>
> Thanks for help
> Bernardbthouin Guest
-
stacekz #3
Re: Submit and Cancel
Here is a vbScript I use to verify deleting a record, you can modify it for
submitting a record.
<SCRIPT LANGUAGE="VBScript">
<!-- This function allows the user to confirm deleting this record before
deleting it SK 1/17/05 -->
Function form1_onSubmit
If Msgbox("Are you sure you want to delete this sub-title?", vbYesNo +
vbExclamation) = vbNo Then
form1_onSubmit = False
End If
End Function
</SCRIPT>
But if you are just using a simple button next to your submit button that says
cancel, then why don't you just change the button from a submit button to none
and place the behavior "onclick" go to URL... or something like this.
stacekz Guest



Reply With Quote

