// JavaScript To prevent user hitting Submit button too many times.
htmlPage.append("<SCRIPT LANGUAGE=\"JavaScript\"> <!--
Hide script from
old browsers\n ");
htmlPage.append(" var submitted = false;");
htmlPage.append(" function doSubmit(form)");
htmlPage.append(" {");
htmlPage.append(" if (!submitted) {");
htmlPage.append(" submitted = true;");
htmlPage.append(" form.submit();");
htmlPage.append(" }");
htmlPage.append(" }");
htmlPage.append("// End hiding script from old
browsers-->\n</SCRIPT>");
T. Kochanowicz
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
purnima das
Sent: Sunday, April 15, 2001 11:59 PM
To: [EMAIL PROTECTED]
Subject: disabling button....!
hello everybody,
i am using HTML, JavaScript, and Servlet and a NETSCAPE BROWSER.....! the
servlet generates an HTML page, and the page has a button, i want that on
the onClick Event of the Button, the button should be disabled, so that the
user is not able to click it again and again n number of times, i.e. i want
to ensure that the button can be clicked only once, can anybody help me, as
to how do i make the button disabled through JavaScript and get it enabled
again,.....?
different browsers, react differently, i am using NETSCAPE 4.7...!
have a good day
purnima
_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html