2013年12月1日 星期日

javascript-modal subform

javascript-call-subform.

Step
  1. <link href="css/modalPopLite.css" rel="stylesheet" type="text/css" />
  2. <script src="js/modalPopLite.js" type="text/javascript"></script>
  3. <div id="clicker"></div>
    <div id="popup-wrapper"> <!--modal box-->
    <iframe width="100%" height="100%"
    name="moralFrame" id="moralFrame"
    src="#"
    frameborder="0" >
    </iframe>
    <a href="#" id="close-btn" style="display:none;">Close</a>
    </div>
  4. <script>
    $(function () {
    $('#popup-wrapper').modalPopLite({ openButton: '#clicker', closeButton: '#close-btn', isModal: true });
    });
    function exitMoralBox(string){
    $('#close-btn').click(); }
    </script>
  5. onclick="$('#popup-wrapper').width(1080).height(600);
    s1='';
    s='input9.jsp?input=companyProfileInput.txt&config=companyProfileInputConfig.txt&mode=DUMMY'; $('#moralFrame').prop('src', s);
    $('#clicker').click(); "

沒有留言:

張貼留言