RE: Stop form submission?

by Rebecca Campbell <rcampbel(at)standard.com>

 Date:  Thu, 27 Jan 2000 11:42:07 -0800
 To:  "'Paul Tyng'" <paul.tyng(at)dealerkid.com>,
"'hwg-techniques(at)mail.hwg.org'" <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
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.