473,799 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to detect submit abort / stop button?

4 New Member
Hi all,

While I understand there is no stop button handler, I do desire a way to know if a form submission was aborted.

When I submit my page, I lock down all of the controls so no further editing is allowed. If aborted (via ESC key, stop button, etc.) I'd like the page to open again.

Is this possible?

I thought that perhaps onAbort would be called if I displayed an animated GIF but that is not the case (and rightfully so; makes sense).

Any ideas? Thanks!
Jul 3 '07
10 7180
kovik
1,044 Recognized Expert Top Contributor
Oh, yeah, I'm not much of an AJAX user, and by "not much of," I mean "I've never tried it." Id assume that starting an operation would have the operation continue regardless of whether or not the client is still on the same page. I was thinking in terms of page requests rather than AJAX-handled requests. In that case, disabling the button would be sensible.

My way is more like, sending them to a page for the processing to occur there rather than happening on the same page.
Jul 4 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4693
by: C. Olive | last post by:
Anyone know how to hook a browser's Stop button (event?) in JS? I've looked through the Document and Window DOM events in my O'Reilly JS book and don't see anything that stands out. About the closest thing I've come across is onAbort() in the Image object... I just want to know if Stop was clicked and if so redirect using parent.location... Thanks, Chris ----- Chris Olive
7
4682
by: Gayathri | last post by:
Is there anyway to disable the stop button in IE 6? Without doing "Opening in new window and toolbar is set to no" what will document.onstop help in?? I need to capture the browser stop event...is it possible?
0
1968
by: hy | last post by:
Hi all, I got the question about the radio button. How do i detect previous checked radio button after i checked other's radio button. While the new radio button checked, it need to prompt out a confirm message box, if user click on the 'cancel' button, system will programatically check the previous radio button instead of the latest radio button that checked.
4
1827
by: grant.griffith | last post by:
I need to find a way to force all the asp code on a web page to load regardless if the user hits the reload or stop button on the browser. I am seeing where more and more users are doing this and it is causing me some problems on some pages. I would guess there is a way to do this I am just searching for the wrong thing?
7
2278
by: jab3 | last post by:
Hello. I'm wondering if someone can answer something I'm sure has been answered a thousand times before. I am apparently just too dumb to find the answer. :) I've found information about the 'onstop' event, but it's not behaving as expected. (And it also seems to be a proprietary attribute) That is, my defined function is not being run when I click stop. I've 'inserted' it like this: <body onstop="stopped_clicked()"> And the function...
0
1080
by: Jay | last post by:
Hi, I have one situation where i have been stuck... its like i have two buttons on a page and what do i do is i click 1st button, which disables the 2nd button ( through Javascript ) and in code behind there is some code which runs and also takes some time ( means processing goes on ). In mean time if i click IE stop button the processing stops but also what i want is that 2nd button should get enabled on IE stop click.
0
1136
by: pallavi patel | last post by:
there is a form wh having 3 frames. in 1 frame there is heading info . in 2 frame there is Menu bar & in 3 frame there is submit button. if. i click on submit button. & i rellize that some wrong info. is get inserted. for that i am trying to click stop button in browser. it is not working means procedure for submit button get executed.
8
2054
by: Richard Maher | last post by:
Hi, I am in a mouseup event for button A and I'd like to disable=false button B before starting some work. Is there anyway that an event for button B can then fire before my event processing for button A's mouseup has completed? I beleive event processing to be single-threaded for good reason but I need a "stop" button and it's no good if it doesn't do anything until the other processing has finished :-)
1
1554
by: Brian Kejser | last post by:
Hi Using javascript, is it possible to detect if the user clicks the browser stop button? Thanks
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.