The original site with the ShowModalDialog to pop-up boxes, pass the parameters, chrome and other browsers are not to force, compatibility is poor, so the use of JS layer quickly upgraded a bit.
1, the original pop-up page to delete the old pass code, leaving a hidden record parameters on the line.
2. On the parent form
#selectinfo is the ID of the hidden, when the parameter is selected to close the subform triggers the argument to the parent form
<script src= "Js/jquery-1.8.3.js" type= "Text/javascript" ></script> <script src= "js/layer/ Layer.min.js "type=" Text/javascript "></script> <script type=" Text/javascript "> $ (function () { $ (' #btn_addname '). Click (function () { $.layer ({ type:2, shadeclose:true, Title:false, closebtn: [1, true], shade: [0.6, ' #000 '], border: [0], offset: [' 20px ', '], area : [' 242px ', ( $ (window). Height ()-+ ' px '], iframe: {src: ' selectperson.aspx '}, close:function (index) {Document.getel Ementbyid ("Receivername"). Value = Layer.getchildframe (' #selectinfo ', index). Val (); } }); }); </script>
Old-fashioned ShowModalDialog Rapid Upgrade program