• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calls servlet onchange event

 
phani kon
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
phani kon
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for example like webPath + "servlets/ExceedAppServlet";
 
phani kon
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic