Window.showModalDialog dialogWidth property not working in IE

I have an ASP.NET 2.0 framework page that is running in our controlled environment (IE 7). The property dialogWidth

doesn't seem to work. The script looks like this:

var win = window.showModalDialog ('Page.aspx', 'PopupPage', 'dialogHeight:600px,dialogWidth:800px,resizable:0');

      

dialogHeight

works fine, but no matter what I change dialogWidth

to - it seems to be limited to around 250px wide. In the above configuration, the modal popup is taller than it is wide - although the width is 800 and the height is 600.

+1


a source to share


2 answers


Try the following:

var returnValue = window.showModalDialog(sUrl,'','unadorned:yes;resizable:1;
dialogHeight:550px;dialogwidth:985px;scroll:no;status=no');

      



Someone I worked with had the same problem and this fixed their problem ...

+5


a source


Parameters must be separated by commas, not commas.



var win = window.showModalDialog ('Page.aspx', 'PopupPage', 'dialogHeight:600px; dialogWidth:800px; resizable:0');

      

+7


a source







All Articles