Thanks... That seemed to do it...
-----Original Message-----
From: Gautam Batra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 05, 1999 12:19 AM
To: [EMAIL PROTECTED]
Subject: Re: JavaScript calling Servlet methods...
Hi !
Try this-----------------
<html>
<head>
<title>Click here for help on Java</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<script language="javascript">
function help(String)
window.open(String,"_new","toolbar=0,location=0,directories=0,status=0,menub
ar=1,scrollbars=1,resizable=0,width=300,height=300,top=0,left=0");
}
</script>
</head>
<body>
<a href="javascript:help('http://java.sun.com')">Click here for help on
Java</a>
</body>
</html>
-----------------
Here the String is the url of the servlet...
hope it helps
Gautam
----- Original Message -----
From: King, Nathan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 05, 1999 3:20 AM
Subject: JavaScript calling Servlet methods...
> I'm working on a website, and adding help screens to the on-line
> processing. I had been trying to use a JavaScript function for creation
of
> a new window, which will call a Servlet in order to write out the HTML to
> use on the page. Basically, I've got/want a small JavaScript function
that
> I can call from several places, passing a simple variable. This variable
> specifies which information will be published in the new window.
> Can a JavaScript function directly call a Servlet method? If the
> JavaScript creates the new window, then could I use document.write with
the
> Servlet method (as it does return String format)?
>
> Nate
>
>
___________________________________________________________________________
> 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