473,386 Members | 1,720 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,386 software developers and data experts.

Do Events Run in Threads?

I'm using IE 6.0 for Windows.

I have a table with several rows where each row has a column that contains
two checkbox controls ("approve" & "reject"). A form (separate from the
table) is submitted each time one of the checkboxes is clicked and the
response is targeted to an <iframe> on the same page. I would like to be
able to prevent the user from clicking another checkbox until after the
response comes back from the form submitted.

I've tried handling this by setting a global variable to true whenever the
form gets submitted, but that doesn't seem to work all of time. If I keep
clicking very quickly I can sneak multiple submissions through. I'm trying
to figure this out and all I can come up with is that perhaps IE (and
perhaps other browsers) run events such as onclick in their own threads?

Is that true? Anyone have a good idea of how to code something that will
prevent another form submission until after the response comes back from the
form?
Jul 23 '05 #1
1 2686

Tom Frantz <to*******@comcast.net> wrote in message
news:TI********************@comcast.com...
I'm using IE 6.0 for Windows.

I have a table with several rows where each row has a column that contains
two checkbox controls ("approve" & "reject"). A form (separate from the
table) is submitted each time one of the checkboxes is clicked and the
response is targeted to an <iframe> on the same page. I would like to be
able to prevent the user from clicking another checkbox until after the
response comes back from the form submitted.

I've tried handling this by setting a global variable to true whenever the
form gets submitted, but that doesn't seem to work all of time. If I keep
clicking very quickly I can sneak multiple submissions through. I'm trying to figure this out and all I can come up with is that perhaps IE (and
perhaps other browsers) run events such as onclick in their own threads?

Is that true? Anyone have a good idea of how to code something that will
prevent another form submission until after the response comes back from the > form?

How about some code? You need to be certain that the flag is inspected and
set prior to allowing .submit() to be called.
--
S.C.

Jul 23 '05 #2

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

Similar topics

4
by: LP | last post by:
Hello! I am still transitioning from VB.NET to C#. I undertand the basic concepts of Delegates, more so of Events and somewhat understand AsyncCallback methods. But I need some clarification on...
3
by: Stampede | last post by:
Hi, I want to use the FileSystemWatcher in a Windows Service. I read an article, where the author created the FileSystemWatcher object in a seperate thread and when the event is fired, he started...
11
by: Nicky Smith | last post by:
Hello, I'm studying a book on VB.net Win apps, and I'm reading a section on events and delegates and raising events. Is it just me, or is this not just subs dressed up as something else? I...
15
by: Bryce K. Nielsen | last post by:
I have an object that starts a thread to do a "process". One of the steps inside this thread launches 12 other threads via a Delegate.BeginInvoke to process. After these 12 threads are launched,...
3
by: daan | last post by:
Hello, I have a problem and I can't get the solution for it :( I have a com dll, which i imported as a reference. The com object is part of a class which is multithreaded and will create...
14
by: Gotch | last post by:
Hi all, I've recently digged into C# and the whole .Net stuff. Particularly I found the idea of adding Events and Delegates to the C# language very interesting and I'm trying to use them in...
4
by: jehugaleahsa | last post by:
Hello: Is there a way to prevent one event from firing while another event is already being fired? I have a tool that extracts media from web pages and it has multiple events firing when the...
9
by: thiago777 | last post by:
Question details: VB .NET / threads / events / GUI Imagine the following situation: A method from object "A" creates "n" threads. Variables from these threads contains values that should...
0
by: thiago777 | last post by:
Hi! Im still trying to make my application work in an event-driven way. It had worked so far with my threads, but the problem Im having is only when modifying a GUI component from the event handler...
3
by: JohnM | last post by:
Hi there, Are there any specific rules or best-practices I should be aware regarding events and the threads they're fired on. Object 1 can be created on thread 1 for instance and an event then...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.