View Full Version : window.opener.forms[0].submit() problem

07-07-2006, 03:21 AM

I am using this to submit a form.

<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.

07-07-2006, 04:10 AM
the form tag does not have onclick


07-07-2006, 06:37 AM
sorry i mean on submit.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum