Re: can javascript execute a servlet?

2002-09-26 Thread Raj Saini

Yes, you can call a servlet from the javascript but only in Mozilla 1.x (And
mozilla based browser) and IE6. You can use the XMLHttpRequest object to
make HTTP calls. Please refer the http://www.mozilla.org/xmlextras/

Raj
- Original Message -
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 4:13 PM
Subject: AW: can javascript execute a servlet?


This has already been answered the last time you asked. (Last Friday)

Just reposting the question is not a good idea, as you may get the
same result as last time. If you want a different answer you should
at least indicate that you tried that solution and it didn't work
for you.

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 23. September 2002 16:15
> An: [EMAIL PROTECTED]
> Betreff: can javascript execute a servlet?
>
> i don't want the user's screen to REFRESH each time they
> click a servlet inside an  tag. Can Javascript execute a servlet?
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


tsdok

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: can javascript execute a servlet?

2002-09-26 Thread Raj Saini

Yes, you can call a servlet from the javascript but only in Mozilla 1.x (And
mozilla based browser) and IE6. You can use the XMLHttpRequest object to
make HTTP calls. Please refer the http://www.mozilla.org/xmlextras/

Raj
- Original Message -
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 4:13 PM
Subject: AW: can javascript execute a servlet?


This has already been answered the last time you asked. (Last Friday)

Just reposting the question is not a good idea, as you may get the
same result as last time. If you want a different answer you should
at least indicate that you tried that solution and it didn't work
for you.

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 23. September 2002 16:15
> An: [EMAIL PROTECTED]
> Betreff: can javascript execute a servlet?
>
> i don't want the user's screen to REFRESH each time they
> click a servlet inside an  tag. Can Javascript execute a servlet?
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


tsdok

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: can javascript execute a servlet?

2002-09-23 Thread Stephen . Thompson

What you could do is have a hidden frame and use the javascript to post the
hidden frame. 

Regards,

Stephen.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 23 September 2002 15:15
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  tag. Can Javascript execute a servlet?

thanks!
Rich




--
To unsubscribe, e-mail:

For additional commands, e-mail:


tsdok

--
To unsubscribe, e-mail:

For additional commands, e-mail:



---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: can javascript execute a servlet?

2002-09-20 Thread adi

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:


dnld=document.getElementById('linesintable');
dnld.startDownload(servlet_url,getdata);
function getdata(data){
status=data.split("\n")
}


and in the html you have something like this:

http://Servlets/My.Servlet";>"


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  tag. Can Javascript execute a servlet?

thanks!
Rich




--
To unsubscribe, e-mail:

For additional commands, e-mail:



---
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:   
For additional commands, e-mail: