Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

invoking servlet on body unLoad( )  RSS feed

Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
im facing a BIG problem..(may not be a BIG problem for u all )..okey lemme explain
I have a jsp page, on clicking an image on that jsp, i opened a new popup window that will list some values from database..On clicking any value from that list i closed the popup window and calls a servlet on the <body> Unload method of the popup window..It works properly in my machine, but when i tried to execute the same from a remote machine, the servlet is not getting invoked on closing the popup window !!
lemme copy my codes..
the body of the popup window is
<body width="50" height = "40" onUnload="submitme()">
and the script is
function submitme()
{ alert("called__");
if (document.frm.custcode.value.indexOf('null') != 0)
{ document.frm.submit();
and the <form > tag is
<form name=frm method="POST" action="/raj/selection">
both alert are called but the servelt is not executed by the remote machine..
i doono where to post this que, i mean in HTML forum or JSP.. if this is not JSP related plz forward this to HTML forum...
cld any1 help me ???

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!