Ok, that's pretty much what I've been finding. I actually found a decent work around using an <iframe> set (<iframes> have to be set on client requirement, no choice there> and db checks. Trouble is now I can't seem to close the window from within an <iframe>.
I open a window with:
<SCRIPT LANGUAGE="JavaScript">
<!--
function UploadMedia(newURL, newName, newFeatures, orgName) {
var remote = open(newURL, newName, newFeatures);
if (remote.opener == null)
remote.opener = window;
remote.opener.name = orgName;
return remote;
}
function launchRemote() {
myRemote = UploadMedia("http://www.domain.com/file", "WinName", "height=580,width=600,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1", "myWindow");
}
// -->
</SCRIPT>
The window contains a page with two <iframe> sets. This loads fine and behaves properly. The trouble is when I do a close event either with:
<BODY onLoad="window.close();"> within the iframe does nothing (probably referrs to the iframe, not outer window.
OR
<script>
function closeController()
{
WinName.close();
}
</script>
</HEAD><BODY onLoad="closeController();">
It returns an error that "WinName" is not defined. Though it should be as that's the window that was opened. What am I missing here?
Thanks