RE: Stop form submission?
by Paul Tyng <paul.tyng(at)dealerkid.com>
|
| Date: |
Thu, 27 Jan 2000 15:35:35 -0500 |
| To: |
"'Rebecca Campbell'" <rcampbel(at)standard.com> |
| Cc: |
"'hwg-techniques(at)mail.hwg.org'" <hwg-techniques(at)mail.hwg.org> |
| |
todo: View
Thread,
Original
|
|
thanks everyone for the help, i had already tried these things and also
disabling the button, i found that it was just a coding error on my part,
anyway i also implemented a server side/database solution with timestamping
so the problem no longer applies
thanks again
paul
> -----Original Message-----
> From: Rebecca Campbell [mailto:rcampbel(at)standard.com]
> Sent: Thursday, January 27, 2000 2:42 PM
> To: 'Paul Tyng'; 'hwg-techniques(at)mail.hwg.org'
> Subject: RE: Stop form submission?
>
>
> the only two things i can think of are:
>
> 1) put the submit button in a <div> and when it's clicked,
> hide the <div>
> i think the code is: document.myform.divname.visibility
> = 'hidden';
>
> 2) put the submit() in a javascript function and set a flag
> to see whether
> or not the form can be submitted. something like this:
>
> flag = 0;
>
> function checkAndSubmit() {
> if(flag == 0) {
> myform.submit();
> flag = 1;
> }
> }
>
> you'll probably have to play around with those to get them to
> work for you,
> but hopefully that's enough to get you started.
>
> -rebecca
> http://www.nerdygirl.com
>
>
> -----Original Message-----
> From: Paul Tyng [mailto:paul.tyng(at)dealerkid.com]
> Sent: Thursday, January 27, 2000 10:40 AM
> To: 'hwg-techniques(at)mail.hwg.org'
> Subject: Stop form submission?
>
>
> I need some code that will stop subsequent form submissions
> in the time
> between hitting submit and the submission acutally taking
> place. in part of
> the application i am working on you can keep hitting submit
> while its still
> submitting the first request and like 5 or 6 records can be
> created instead
> of just one, i can use javascript, asp or whatever, i just
> need something,
> and it only has to work in ie 4 and 5.
>
> i've tried many solutions already but i can't seem to get them to work
> correctly, any suggestions?
>
> thanks
> paul tyng
> paultyng.com
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.