sunnie
07-07-2006, 03:21 AM
Hi
I am using this to submit a form.
window.opener.forms[0].submit()
<form name="extend" method="post" action="extend_date.jsp" onClick="window.opener.forms[0].submit(); self.close()">
It never reaches the self.close() statement. Instead the new form will be refreshed in this window, rather than the parent window/page.
the extend_date.jsp is a jsp page that calls an extend method from a java class and response.sendRedirect to the parent page
if i use this: window.opener.location.reload(); window.self.close(); the window will close, but sometimes the extend java method will not get executed.
appreciate any advice.
I am using this to submit a form.
window.opener.forms[0].submit()
<form name="extend" method="post" action="extend_date.jsp" onClick="window.opener.forms[0].submit(); self.close()">
It never reaches the self.close() statement. Instead the new form will be refreshed in this window, rather than the parent window/page.
the extend_date.jsp is a jsp page that calls an extend method from a java class and response.sendRedirect to the parent page
if i use this: window.opener.location.reload(); window.self.close(); the window will close, but sometimes the extend java method will not get executed.
appreciate any advice.