hi:
try this......maybe it can works
<form ..... onSubmit="<% return checkFields(changepasswdform); %>">
chew hock ping
Brenda Tung
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
US.EDU.SG> cc:
Sent by: A mailing Subject: use Javascript in JSP
list about Java
Server Pages
specification and
reference
<JSP-INTEREST@java
.sun.com>
05/02/2000 04:34
PM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference
hi all,
i have a problem in embedding javascript in JSP. do i do this :
<%!
function checkFields(changepasswdform) {
my whole javascript code for checkFields goes here
%>
<form ..... onSubmit="return checkFields(changepasswdform);">
however, i have an error saying identifier expected. can anyone help ?
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets