I create a modeless dialog window and at first set a default dialogWidth, height, top, left.
I want the user to be able to close that window and reopen it. Upon a reopen i want it to *remember
I set up an object in my main window that will hold these properties, but I cannot seem to be able to access an open modeless dialog window’s properties.
here is my code:
var fenceWindow = “null”;
var fenceWindowObj = new Object();
fenceWindowObj.Height = 300;
fenceWindowObj.Width = 375;
fenceWindowObj.Left = 0;
fenceWindowObj.Top = 0;
function openFenceWindow(){
var myObject = new Object();
myObject.IMSViewer = IMSViewer;
if (fenceWindow != “null”){
if(!fenceWindow.closed){
fenceWindowObj.Height = fenceWindow.dialogHeight;
fenceWindowObj.Width = fenceWindow.dialogWidth;
fenceWindowObj.Left = fenceWindow.dialogLeft;
fenceWindowObj.Top = fenceWindow.dialogTop;
fenceWindow.close();
}
}
fenceWindow = window.showModelessDialog(“fences.html”,myObject, “dialogHeight:”+fenceWindowObj.Height+”px; dialogWidth:”+fenceWindowObj.Width+”px; dialogLeft:”+fenceWindowObj.Left+”px; dialogTop:”+fenceWindowObj.Top+”px; resizable:yes; help:no; status:no”);
}
}
fenceWindow.dialogHeight, Width, etc are null. I also tried just .Width, .innerWidth, .outerWidth, etc, .pageXOffset, and a bunch of other atttributes i thought would work.
Is it possible to access a modeless dialog window’s attributes? Any ideas?
Thanks
jason