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();
                    }
                }
            });
        }
     
  • 相关阅读:
    【使用教程】CMDer,Window下CMD的替代者
    什么是数据仓库?
    【大话存储】学习笔记(八),数据保护
    分布式与集群
    【大话存储】学习笔记(五),以太网
    【廖雪峰】Python
    【大话存储】学习笔记(7章), OSI模型
    KVM计算虚拟化原理,偏基础
    DevOps
    H3C CAS(云管理平台)介绍
  • 原文地址:https://www.cnblogs.com/zhuyeshen/p/10685381.html
Copyright © 2011-2022 走看看