Hi! I'm using this class and it's been very useful and good looking,
but a warning message box appears when a try to open again the same
window, I would like that the older close, and so the other shows up.
Could you understand what I'm trying to say? My english is poor. I'm
brazilian and I don't have many opportunities to pratice it.
I thought in something like:
function f_janela(p_url,p_cabecalho){
if(document.getElementById("dialog1")){
Windows.close("dialog1", top.event);
}
var win = new Window("dialog1", {className: "alphacube", title:
p_cabecalho, minimizable: false, top:50, left:40, width:650,
height:300, url: p_url, destroyOnClose: true, showEffectOptions:
{duration:null},hideEffectOptions: {duration:null}});
win.show();
}
Unfortunately, it's not working, the message still apears. I think is
that the Windows.close function takes a time to occours and the new
windows is created first. But when the warning box is closed, what I'd
like to happen, happens!
Thanks!!
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com