On 26 Feb 99, at 9:40, Guido A.J. Stevens wrote:

> Re: preventing multiple submissions of the same form:
> 
> <script type='text/javascript'>
> var submitted = 0;
> function checkSubmit() {
>  if (submitted == 0) {
>   submitted++;
>   return 1;
>  } else {
>   return 0;
>  }
> 
> }
> </script>
> 
> to the form, add an onSubmit handler:
> onSubmit='check=checkSubmit(); return check;'
> Haven't tested this, so you might have to tweak it a bit to get it to
> work, but the algorithm should be useful.

This was interesting but I could not get it to work on NN or IE.

I don't think that check can be recognized as true or false.

Here is something which is almost working. The idea is to forward 
them to another page after they click submit (seems like a fork).

<FORM METHOD="POST" ACTION="http://206.28.82.13/cgi-
bin/print_env.cgi" onSubmit="checkSubmit('http://www.rede.com'); 
return true;" target="_blank">
Find: <input type="text" name="find">
<input type="submit">
</form>


function checkSubmit(url) {
        //alert("You will now be transported");
        location.href = url;
}

This was working fine in IE but then the website would not load. The 
url would be in the address but it wouldn' t load. It did not work in 
NN but I think this should work in both.

Peter
Might is not Right. But there is a lot of Might knocking 
about in this world, and something has to be done about it.
-- King Arthur, The Once and Future King
____________________________________________________________________
--------------------------------------------------------------------
 Join The NEW Web Consultants Association FORUMS and CHAT:
   Register Today at: http://just4u.com/forums/
Web Consultants Web Site : http://just4u.com/webconsultants
   Give the Gift of Life This Year...
     Just4U Stop Smoking Support forum - helping smokers for
      over three years-tell a friend: http://just4u.com/forums/
          To get 500 Banner Ads for FREE
    go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------

Reply via email to