File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes calls servlet onchange event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "calls servlet onchange event" Watch "calls servlet onchange event" New topic

calls servlet onchange event

phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
Onchange event I want to call a servlet . How it is possible?
[ December 14, 2005: Message edited by: lakshmi manepally ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

How would you submit a request to any other resource? Fromt he point of view of HTML and Javascript, they're all just links.
[ December 14, 2005: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
for example like webPath + "servlets/ExceedAppServlet";
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
I am calling a servlet like below using javascript
var sHelpPage = webPath+"servlets/IncidCatServlet";, "_help");

It calls that particular servlet and opens the next window, but it remains open the last window also. I want the last window to be closed whenever the it calls the second window, how can I acheive this.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not close the window if JavaScript did not open it.

so use
and you will not have to worry about pop up windows.

I agree. Here's the link:
subject: calls servlet onchange event
It's not a secret anymore!