[Javascript] Replace submit button upon click...

Chris Nafziger CNafziger at sauder.com
Fri Mar 14 15:29:32 CST 2003


I believe there are no pages containing more than one form.  The declaration
you specified requires modification of each form, correct?  


-----Original Message-----
From: David T. Lovering [mailto:dlovering at gazos.com] 
Sent: Friday, March 14, 2003 4:12 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Replace submit button upon click...


A couple of questions --

  Is this all one form, or multiple forms?  If all the pages hang off of
one form, you could use a single 'onValidate' declaration in the form
header itself to forward control to a single routine which would terminate
with a return 'true' to continue with the CGI/BIN (or whatever) receipt
of the form data, yet issue the 'pending...' dialogue beforehand.

  If these are multiple forms, the matter is a bit trickier...

  -- Dave Lovering


Chris Nafziger wrote:
> 
>    Part 1.1Type: Plain Text (text/plain)

In a controlled environment (IE 5+), is it possible have a function, that
can be included in any page, that replaces a submit button with the contents
of a string, and submits the form, when the button is clicked, without
having to specify the onClick event for submit buttons throughout the site.
I'm looking for a little function to put in an ASP include that is included
on each page of the site, which will effectively make the text "Pending..."
appear, each time a submit button is clicked, with no work involved other
than creating the function, and putting it in the include.  Obviously, the
forms must still submit properly.  You DOM gurus out there... can you point
me in the right direction please?



More information about the Javascript mailing list