You could make the response from the submit be an html page which executes
the relevant (parent.reload; close) Javascript. 

Alternatively you could submit the form on the popup window so that the
response of this submission was displayed in the parent window (via the
'target' attribute of the form tag). You'd want to define the forward for
this action to be the refresh action you want your parent to perform.

Paul

> -----Original Message-----
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 10, 2004 5:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: [OT] synchronous form submit in a popup so parent 
> refreshes prope rly
> 
> 
> I have a popup with a save button that works like this:
> 
>  
> 
> onclick="document.forms[0].Dispatch.value='Save';document.form
> s[0].submit();
> window.opener.location.reload(true);window.close();"
> 
>  
> 
> The problem is that the parent window gets refreshed before the submit
> finishes what it needs to finish, i.e., write stuff to the 
> db. I want the
> parent window to be refreshed after the submit has finished. 
> What are some
> ways I can try to make sure the submit finishes before the 
> parent window
> gets updated?
> 
>  
> 
> Thanks,
> 
> Brian Barnett
> 
> 


**********************************************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to