[Ursprüngliche Nachricht]
   Von: Brenda Tung <[EMAIL PROTECTED]>, Tue, 2 May 2000 16:34:28 +0800
   An: [EMAIL PROTECTED]
   Betreff: use Javascript in JSP
____


> i have a problem in embedding javascript in JSP. do i do this :
> <%!
> function checkFields(changepasswdform) {

your try to register javascript as a java-function. this won´t work.

try

<script language="JavaScript">
<!--
 function checkFields(changepasswdform) {
 ...
 }
//-->

without any use of <%, just like you would in a pure html enviroment.

MfG Uwe Schaefer
______________________________________________
Email: [EMAIL PROTECTED]

===========================================================================
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

Reply via email to