Hello,
javascript can execute aservlet.
You need to call the servlet url and get the data back into
a javscript object.
This is an example how i did it with IE:
<script language=javascript>
dnld=document.getElementById('linesintable');
dnld.startDownload(servlet_url,getdata);
function getdata(data){
status=data.split("\n")
}
</script>
and in the html you have something like this:
<div id="linesintable"
style="visibility:hidden;behavior:url'#default#download')
servleturl="http://Servlets/My.Servlet"></div>"
hope it helps.
the only bad thing about it is that you will need 2 different codes
for netscape and IE
Adi
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 5:39 PM
To: [EMAIL PROTECTED]
Subject: can javascript execute a servlet?
i don't want the user's screen to REFRESH each time they click a servlet
inside an <A> tag. Can Javascript execute a servlet?
thanks!
Rich
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>