Kevin,
In the parent window, try sth like that :
<script language="javascript">
var subwindow = window.open( ... ); // here�s where you would open the
child window
function focusWnd()
{
if(subwindow != null)
if(!subwindow.closed)
subwindow.focus();
}
function closeWnd()
{
if(subwindow != null)
if(!subwindow.closed)
subwindow.close();
}
</script>
In the body tag:
<body ... onFocus="focusWnd();" onUnload="closeWnd(); ... >
[]�s
Maca�ba.
--
Heisenberg is stopped by a traffic cop who asks: "Do you know how fast
you were going?"
Heisenberg replies: "No, but I know exactly where I am"
--
---
On Mon, 21 May 2001, Kevin Bridges wrote:
> Date: Mon, 21 May 2001 11:09:29 -0600
> From: Kevin Bridges <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: Fusebox <[EMAIL PROTECTED]>
> Subject: OT: Modal Windows
>
> Has anyone ever built an application that uses embedded modal windows?
> Click a link in parent and a modal window opens that stays focused and
> doesn't allow interaction with the parent. Then inside of modal window
> click link that opens another modal window that stays focused and doesn't
> allow interaction with any previous windows etc. etc.
>
> I don't think using self.focus() or a variation thereof is going to cut it
> and was wondering if anyone has any pointers to a solution?
>
> Thanks,
>
> Kevin Bridges
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists