Hi,
if I want to add a Javasript source, how should I do that & where should be
.js file placed ?
Thanks,
Abhijit

> -----Original Message-----
> From: Lou [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, October 09, 1999 2:43 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Java Script/Servlet?
>
> Also try:
> out.println("function hello()");
>
> instead of:
> out.println("fuction hello()");
>
> Lou
>
> Tom Kochanowicz wrote:
>
> > You need a '\n' like below, then it will work.
> >
> >                 htmlBody.append("<SCRIPT LANGUAGE=\"JavaScript\"> <!--
> Hide script from
> > old browsers\n ");
> >                         ......
> >
> >                 htmlBody.append("// End hiding script from old
> browsers-->\n</SCRIPT>");
> >
> > Tom Kochanowicz
> >
> > -----Original Message-----
> > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Alok
> > Daipuria
> > Sent: Friday, October 08, 1999 12:34 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Java Script/Servlet?
> >
> > probably your quotes. If you are embedding javascript, be careful as "
> is  a
> > special character.
> > -alok
> >
> > Lalith Jayaweera wrote:
> >
> > > Hi,
> > >
> > >   Let me know can't we embed a Java Script as follows, it gives an
> error
> > at the
> > > run time what's wrong.What this code does is, once U click the button
> it
> > > calls the function 'hello()'.for the time being ignore the other
> stuff.
> > > Can't we concatenate strings as I have done.
> > >
> > > public class simpleservlet  extends HttpServlet{
> > >   public void doGet(HttpServletRequest req,HttpServletResponse res)
> > >                throws ServletException,IOException {
> > > ....
> > > ...
> > > out.println("<HTML><HEAD>");
> > > out.println("<script language=javascript>");
> > > out.println("fuction hello()");
> > > out.println("{confirm("+"Are U there"+");}");
> > > out.println("</script>");
> > > ....
> > > out.println("<input type=button value=Click onclick="+"hello()"+">");
> > > ...
> > > ...
> > >
> > >
> >
> __________________________________________________________________________
> _
> > > 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
> >
> >
> __________________________________________________________________________
> _
> > 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
>
> --
> Lou Labeck
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> __________________________________________________________________________
> _
> 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

Reply via email to