| Author |
invoking servlet on body unLoad( )
|
Rajeev Ravindran
Ranch Hand
Joined: Aug 27, 2002
Posts: 455
|
|
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(); alert("__submitted"); } } 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 ??? Thanks, raj SCJP2
|
SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
|
 |
 |
|
|
subject: invoking servlet on body unLoad( )
|
|
|