473,320 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Cancel submit?

Is there a way to cancel the submit process from the client using vbscript?
Nov 17 '05 #1
2 3573
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" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Return false from your vbscript function

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Joe C." <no****@nospam.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
Is there a way to cancel the submit process from the client using

vbscript?


Nov 17 '05 #2
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
http://Steve.Orr.net
"Joe C." <no****@nospam.com> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
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" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Return false from your vbscript function

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Joe C." <no****@nospam.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
Is there a way to cancel the submit process from the client using

vbscript?



Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jon | last post by:
Hi, I have a form. I have the code, below, to check for certain compulasry fields. The Submit button has: onClick="validate(this.form)" My problem is that the warnings come up fine, but the...
1
by: Corey Olsen | last post by:
Can anyone point me to some documentation on bypassing validation controls when a user selects cancel? What I have is a user control with a form to fill out information on a subject. The user...
3
by: pmud | last post by:
Hi, I have an ASP.NET application using C# code. I am using a datagrid to display records from a database based on a user input, i.e a user enters a compnay name in text box & when he clicks a...
1
by: Bucky | last post by:
I haven't found any vbscript code that can stop the form submission/postback after the msgbox. The problem is that asp:button is rendered as <input type="submit"> instead of <input type="button">....
10
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My...
0
by: Stuart Whiteford | last post by:
Hi, I've got a basic web form, two textboxes, a couple of radio button groups, some required field validators, and a Submit and Cancel button. When the page loads, if I click the Cancel...
4
by: Martin | last post by:
I have a form with two submit buttons: <Save> and <Cancel>. When the user clicks on <Save>, I want to execute a validate function. When he clicks on <Cancel>, I want the form to submit without...
13
Frinavale
by: Frinavale | last post by:
I've been trying all morning to cancel a form submit to the server. I have a JavaScript Object that determines whether or not the page should be submitted to the server depending on whether the...
1
by: ghjk | last post by:
I'm using ajax in my php site. In there I have two buttons named as submit and cancel. When I click submit button it validates data using ajax. (No need to use form for this). But the following...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.