Does anyone have a good js list they could refer me to for stuff like this?
Sorry about posting to this list, but it consistently provides help!
Thanks, that helped me solve it:
parent document has this:
<script>
var subwindow;
function OpenWindow() {<cfoutput>
subwindow
window.open('link.cfm','ShowAccount','height=480,width=640',modal='yes');
temp=subwindow;
</cfoutput>
}
focuswindows();
function focuswindows() {
if(subwindow) {
if(!subwindow.closed)
subwindow.focus();
}
var the_timeout = setTimeout("focuswindows();", 1);
}
</script>
Call OpenWindow function via href onclick.
First child contains this:
<script>
var subwindow;
function OpenWindow() {
subwindow
window.open('link.cfm','ShowLedger','height=480,width=640',modal='yes');
temp=subwindow;
opener.subwindow='';
}
focuswindows();
function focuswindows() {
if(subwindow) {
if(!subwindow.closed)
subwindow.focus();
}
var the_timeout = setTimeout("focuswindows();", 1);
}
</script>
<body onFocus="opener.focuswindows();" ONUNLOAD="opener.subwindow=''">
Call OpenWindow function via href onclick.
Then next child has this:
<body onFocus="opener.focuswindows();"
ONUNLOAD="opener.opener.subwindow=opener.opener.temp">
Now I can loop them infinitely hehehe ... that only took me 10 hours to
figure out.
-----Original Message-----
From: Jo�o Luiz de Brito Maca�ba [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 1:30 PM
To: Fusebox
Subject: Re: OT: Modal Windows
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