window.close() failing to...well...close!
Hoping someone a lot smarter than me can help here!
I have a PHP app used to manage the deal lifecycle for a small start-up. Occasionally a spawned window is failing to close correctly. Here's what I have:
Main window(1) ->> spawns->> Pop-up to add/update comments(1) ->> spawns->> php script to update/save the data into mySQL(3) ->> Refreshes comments display in (1)->>closes pop up.
When page (3) finishes processing (no screen output - just a DB update from posted variabless), it writes the following javascript to the page:
<Script language=Javascript>
window.opener.parent.comments_frame.document.locat ion.replace(<filename to refresh in a page(1) IFRAME>)
window.close();
</script>
Normally all is well, the master page (1) freshes in the appropriate IFRAME, and the pop up window closes. Occassionally the processing page (3) doesn't close and the user sees just a white screen. Looking at the source the above javascript is present.
Any ideas? Uses are all on IE6, Windows XP SP2
Thanks
Martin
|