none
showMoalDialog can not transfer parameter RRS feed

  • Question

  • After Windows update(K3008932) ,My Development changed!

    showMoalDialog can not transfer parameter .

    MY ENVIROMENT IS : Default.aspx can receive Default2.aspx ,but Default2.aspx can not receive Default3.aspx parameter

    Default.aspx

    <script>function ClickJump() {

                var result = window.showModelessDialog("Default2.aspx?a=ss", "ss", "DialogHeight:120px;DialogWidth:450px;help:no;status:no;");          
            }

    <a href="#"  onclick="ClickJump()">目录一</a>

    Default2.ASPX    <script type="text/javascript">        function clickMe() {

        

                var result = window.showModalDialog("Default3.aspx", "", "DialogHeight:400px;DialogWidth:450px;scroll:yes;");
                if (result) {
                    alert(result.toString());
                }  
            }
        </script>
        <input id="Button1" type="button" value="button" onclick="clickMe()" />

    Default3.aspx:  <script type="text/javascript">
            function CloseWindow() {
                window.returnValue = "foo";
                window.close();
            }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <input id="Button1" type="button" value="button" onclick="CloseWindow()" />
        </div>

        </form>

    </body>


    孙海东

    Friday, December 12, 2014 6:40 AM

Answers