zoukankan      html  css  js  c++  java
  • iframe中用到的例子

    <view:qrytr> 
           <view:qrytd colspan="4">
        <iframe id="ccbl" width="100%" src="<%=webapp %>/spscqycc/spscqyccAction!ccbllist.dhtml?map.rwzj=${map.RWZJ}" frameBorder="0" scrolling="no" onLoad="iFrameHeight('ccbl')"></iframe>
        </view:qrytd>
        </view:qrytr> 
     
     
     
     function iFrameHeight(name) { 
                  var ifm= document.getElementById(name); 
                  var subWeb = document.frames ? document.frames[name].document : ifm.contentDocument; 
                  if(ifm != null && subWeb != null) 
                      {
                      ifm.height = subWeb.body.scrollHeight;
                      } 
                  }
     
        function fnsjfm() {
            $.ajax({
                url: '<%=webapp%>/spscqycc/spscqyccAction!updateFm.dhtml?map.rwzj=${map.RWZJ}',
                type: 'post',
                data: $("#form1").serialize(),
                async: true,
                complete: function(request, status) {
                    var txt = request.responseText;
                    if("true" == txt) {
                        var url="<%=webapp%>/spscqycc/spscqyccAction!ccbllist.dhtml?map.rwzj=${map.RWZJ}";
                        document.getElementById("ccbl").src=url;
                    } else {
                        endWait();
                    }
                }
            });
        }
     
  • 相关阅读:
    比较两个集合元素是否相同?
    如何将list集合转成String对象
    如何对金额进行判断
    微信网页授权
    什么是微信小程序?简单介绍
    关于买家买入一件商品以后需要进行的逻辑
    设置快捷的模板的生成
    IDEA优秀插件分享之---Mybatis Log Plugin
    破解Beyond Compare 4
    JPA-save()方法会将字段更新为null的解决方法
  • 原文地址:https://www.cnblogs.com/zhuyeshen/p/10685381.html
Copyright © 2011-2022 走看看