File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "calls servlet onchange event" Watch "calls servlet onchange event" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

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] [Bear's FrontMan] [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";
window.open(sHelpPage, "_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.

thanks
Eric Pascarello
author
Rancher

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

so use
window.location.href="yourlink";
and you will not have to worry about pop up windows.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calls servlet onchange event