Click to See Complete Forum and Search --> : aye aye aye.... popups. help?


Howling Zoe
05-03-2003, 04:59 PM
..

Shampie
05-03-2003, 06:57 PM
I doubt highly that his is possible, when you click in another window that window will be ontop, browsing the other window will put that window ontop..

If it is possible I am curious about howto myself (but I still highly doubt this is possible)

khaki
05-03-2003, 07:12 PM
Hi Zoe...

there are at least two ways of staying on-top (maintaining focus)...

one way "keeps" the focus (Modal... and probably not exactly what you are looking for):
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodaldialog.asp

... and the other way "shares" the focus (Modeless... always on-top)... which is probably exactly what you are looking for:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodelessdialog.asp

just be warned...
IE6 has shown to treat ModalDialogs differently than previous versions of IE.
It's not always a negative though... it just depends on how much functionality you program into the Modal/ModelessDialog.

Let me know if this helps....
;) k

Howling Zoe
05-03-2003, 07:53 PM
..

khaki
05-04-2003, 08:07 AM
okay Zoe...

try this and see how it works.
it should work in IE and Netscape (current at least)... although Opera seems to to create a new and seperate window for it (which is not what you want).

and just so you know...
i didn't write the original code for this...
i just modify it for my own needs.
maybe someone can tweak, clean, fix, add, enhance, etc to it??? :) )

okay...
give it a go and let me know...
;) k

<html>
<head>
<title></title>
<script language="JavaScript1.2">
var winModelessWindow
function ShowWindow()
{
if (window.showModelessDialog)
{
window.showModelessDialog("Coddaire2-Tier-Cabinet.html",null,
"dialogWidth=300px;dialogHeight=400px;")
}
else
{
window.top.captureEvents (Event.CLICK|Event.FOCUS)
winModelessWindow =
window.open ("Coddaire2-Tier-Cabinet.html","ModalChild",
"dependent=yes,width=300,height=400;")
}
}
</script>
</head>
<body>
<a href="#" onClick="ShowWindow()">element to be clicked</a>
</body>
</html>