Note that there are some explanatory texts on larger screens.

plurals
  1. POInternet Explorer 9 ignores dialogWidth/Height for showModalDialog with a frameset
    primarykey
    data
    text
    <p>I've got an older intranet application that needs to show two frames (a fixed menu bar and a variable content data view) inside a modal dialog window. At the moment the dialog is opened using the <code>window.showModalDialog</code> function and everything works fine, as long as I'm opening the page in Internet Explorer 8 (with any view mode) or in Internet Explorer 9 with <em>Compatibility View</em> enabled.</p> <p>Unfortunately, when switching off the <em>Compatibility View</em> in IE9, the dialog window always opens in a size of 266 x 138 pixels, regardless of the specified dialogWidth and dialogHeight values. I created a small example showing the problem:</p> <p>index.html (the page initially loaded):</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html&gt; &lt;body&gt; &lt;input type="button" value="popup" onclick="showModalDialog ('dialog.html', null, 'dialogWidth:500px;dialogHeight:400px;resizable:yes')" /&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>dialog.html (the page opened inside the dialog window):</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt; &lt;html&gt; &lt;frameset rows="*, 70"&gt; &lt;frame src="frame1.html" /&gt; &lt;frame src="frame2.html" /&gt; &lt;/frameset&gt; &lt;/html&gt; </code></pre> <p>frame1.html/frame2.html (the content of both frames):</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html&gt; &lt;body&gt; &lt;p&gt;Frame Content&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>The problem only occurs if I'm showing a frameset document inside the dialog. When opening a regular html document (containing a body with some content), the size is set as specified in the function call.</p> <p>Also, changing the dialog size after the document has loaded only works for regular documents, not for framesets, f.e. insert the following code after the opening html tag in <em>dialog.html</em>:</p> <pre><code>&lt;head&gt; &lt;script type="text/javascript" /&gt; window.setTimeout (function () { window.dialogWidth = "500px"; window.dialogHeight = "400px"; }, 10000); &lt;/script&gt; &lt;/head&gt; </code></pre> <p>As I don't want to change the overall structure of the application (especially the frame-basedness) and I don't know if I'm doing something wrong or if I've found a bug in Internet Explorer, any hints for resolving this problem are welcome.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload