Using setTimeout is inconsistent. If I set 100 milliseconds for the
setTimeout and access my pages over an internal network the 100ms is
enough time to process the opener page reload and then close the popup.
If I access the same pages remotely over a cable broadband connection
the 100ms isn't enough time and I need to increase it further to 200ms.
I don't like the setTimeout solution because it is too variable on the
connection and involves guess work on when the parent page will finish
processing.
Lee, I will try out your solution.
On Jan 22, 6:18 pm, "RobG" <r...@iinet.net .auwrote:
Lee wrote:
badaczew...@gma il.com said:
>The following javascript appears on a popup window.
><script language="javas cript" type="text/javascript">
function InsertContact(v alue)
{
window.opener.C allBackContact( value);
window.close();
}
></script>
>I'm trying to tell the opener page to execute a function to refresh a
>dropdown and then close the window. Unfortunatly this doesn't work in
>FireFox. The window appears to close before it tells the opener to
>execute it's function. If I comment out the window.close() Firefox will
>execute the function and refresh the dropdown. Wrapping the
>window.close in a setTimeout works but is not an option for my solution.
Change your code so CallBackContact () closes the window.Or use setTimeout so it closes itself say 10ms later.
--
Rob- Hide quoted text -- Show quoted text -