locked
Questions about function ---- showModalDialog() RRS feed

  • Question

  • <html>
    <head>
    <meta charset="UTF-8">
    </head>
    <body>
    	<h1>This is indexHtml!</h1>
    	<button onclick="clickMe()">click Me!</button>
    </body>
    <script type="text/javascript">
    	function clickMe() {
    		var paramObj = new Object();
    		paramObj.parentWin = "1111";
    		paramObj.showtype = "2222";
    		paramObj.definedate = "33333";
    		paramObj.valueColName = "5555";
    		paramObj.nowDate = "666666";
    		paramObj.oldEffDate = "77777";
    
    		var url = "./test.html";
    		var rtn = window.showModalDialog(url, paramObj);
    	}
    </script>
    </html>

    <html> <head> <meta charset="UTF-8"> <title>test</title> </head> <body> <h2>This is testHtml!!</h2> <button onclick="clickMe()">click Me!</button> </body> <script type="text/javascript"> window.onload = function() { var gParam = window.dialogArguments; alert(gParam); } function clickMe() { var paramObj = new Object(); paramObj.parentWin = "1111"; paramObj.showtype = "2222"; paramObj.definedate = "33333"; paramObj.valueColName = "5555"; paramObj.nowDate = "666666"; paramObj.oldEffDate = "77777"; var url = "./test2.html"; var rtn = window.showModalDialog(url, paramObj); } </script> </html>


    <html>
    <head>
    <meta charset="UTF-8">
    <title>test2</title>
    </head>
    <body>
    	<h2>This is test2Html!</h2>
    </body>
    <script type="text/javascript">
    	window.onload = function() {
    		var aaa = window.dialogArguments;
    		alert(aaa);
    	}
    </script>
    </html>

    Codes above are index.html,test.html,test2.html;

    When i run the 'index.html' in ie10,it runs correctly;

    but in ie11,it throws undefined, why?

    is something wrong with my ie11?

    please Help!!!!!

    thankyou!

    ----my email:victoryai@126.com

    Friday, December 12, 2014 9:56 AM

Answers

  • I have resolve it.

    uninstall kb3008923 update;

    see:   social.technet.microsoft.com/Forums/en-US/db748198-05f2-48b2-a2f4-33b3f7ed71b7/help-kb3008923-breaks-windowdialogarguments-in-secondary-windows?forum=ieitprocurrentver

    • Marked as answer by Karen Hu Monday, December 15, 2014 9:34 AM
    Friday, December 12, 2014 10:26 AM

All replies