[Javascript] Replace submit button upon click...

David T. Lovering dlovering at gazos.com
Fri Mar 14 16:34:24 CST 2003


Affirmative.  The only way to "globally" change the form behavior without
altering the form HTML directives on each page is to do it through a CSS
declaration in the header

<style type='text/css'>
<!--
  #form:  {blah-blah-blah}
// -->
</style>

-- Dave

Chris Nafziger wrote:
> 
> 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?
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlovering.vcf
Type: text/x-vcard
Size: 304 bytes
Desc: Card for David T. Lovering
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030314/f0c29f1d/attachment.vcf>


More information about the Javascript mailing list