471,582 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,582 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 2635

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Stampede | last post: by
15 posts views Thread by Bryce K. Nielsen | last post: by
14 posts views Thread by Gotch | last post: by
4 posts views Thread by jehugaleahsa | last post: by
3 posts views Thread by JohnM | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
1 post views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

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.