Given DialogHeight is adjusting correctly in IE8 but not inIE 9.

Last post 06-30-2011, 9:35 AM by Eric. 1 replies.
Sort Posts: Previous Next
  •  06-30-2011, 2:00 AM 68272

    Given DialogHeight is adjusting correctly in IE8 but not inIE 9.

    Hi,
    Given DialogHeight is adjusting correctly in IE8 but not inIE 9.

    window.showModalDialog('ProviderSearch.aspx, null, 'status:no;dialogWidth:750px;dialogHeight:507px;dialogHide:true;help:no;scroll:no');
     
    Thank you for the help.
    Surya
    Filed under:
  •  06-30-2011, 9:35 AM 68283 in reply to 68272

    Re: Given DialogHeight is adjusting correctly in IE8 but not inIE 9.

    Hi Surya,
     
    I tested the following code in IE9, it works fine. One "'" is missing in your code, you can have a comparison.
     
    <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
        <head>
      <title>JavaScript API</title>  
       <script language="JavaScript" type="text/javascript" >
           function showDialog() {
             window.showModalDialog('default.aspx', null, 'status:no;dialogWidth:750px;dialogHeight:507px;dialogHide:true;help:no;scroll:no');
         }   
      </script>
      <script runat="server">
      override protected void OnInit(EventArgs e)
      {
      }
      </script>
        </head>
    <body>
        <form id="Form1" runat="server">      
                                    <CE:Editor id="Editor1" Width="860" runat="server">
                                    </CE:Editor><br />                             
                                    <p style="width: 580px">                                
                                        <input type="button" value="showDialog" onclick="showDialog()" id="Button2">
                                     </p>
        </form>
    </body>
    </html>
     
    Thanks for asking
View as RSS news feed in XML