0
回答
jquery tab报错把四个TAB置空,增加点击事件,点击事件的处理中,根据不同的Tab,动态添加相应的IFRAME
终于搞明白,存储TCO原来是这样算的>>>   

<%@page language="java" isELIgnored="false" contentType="text/html; charset=gbk" pageEncoding="gbk"%>
<jsp:directive.include file="/WEB-INF/sitemesh-decorators/include.jsp"/>
<fmt:setBundle basename="bundles.project-resources"/>
<html>
<head>
<title>Edit <fmt:message key="project.title"/></title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/jquery/themes/default/easyui.css">
 <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/jquery/themes/icon.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/jquery/js/jquery-1.7.1.min.js"></script>
 <script type="text/javascript" src="${pageContext.request.contextPath}/jquery/js/jquery.easyui.min.js"></script>
 <script type="text/javascript" src="${pageContext.request.contextPath}/jquery/locale/easyui-lang-zh_CN.js"></script>
   <script type="text/javascript">
  $(function(){
    $("#ongo").click(function()
      {
       $("#ongo").empty().append('<iframe frameborder="0" 

         src="${pageContext.request.contextPath}/endProjectList" style="width:100%;height:100%;"/>');
     }) ;
    alert(nihoa);
  });
    $("#end").click(function()
      {
     $("#end").empty().append('<iframe  frameborder="0"  src="${pageContext.request.contextPath}/endProjectList" style="width:100%;height:100%;"/>');
      })
     });
     $("#stop").click(function()
       {
      $("#stop").empty().append('<iframe  frameborder="0" src="${pageContext.request.contextPath}/stoppingProjectList" style="width:100%;height:100%;"/>');
       })
      });
      $("#terminated").click(function()
        {
       $("#terminated").empty().append('<iframe " frameborder="0" scrolling= "no" src="${pageContext.request.contextPath}/terminatedProjectList" style="width:100%;height:100%;"/>');
        })
       });
      
   </script>
</head>
<body>
<div id="contentarea">     
 <div id="lb"><div id="rb"><div id="bb"><div id="blc">
 <div id="brc"><div id="tb"><div id="tlc"><div id="trc">
 <div id="content">
    <div id="tt" class="easyui-tabs" style="height:1000px;width:1100px;">
         <div title="<fmt:message key="ongoing"/>" id="ongo" >
   </div>
         <div title="<fmt:message key="end.project"/>" id="end">
   
  </div>
  <div title="<fmt:message key="stoped.project"/>" id="stop" >
  </div>
  <div title="<fmt:message key="terminated.project"/>" id="terminated">
  </div>
       </div>
  <div class="clear">&nbsp;</div>
 </div>
 </div></div></div></div>
 </div></div></div></div>
</div>
</body>
</html>

把四个TAB置空,增加点击事件,

点击事件的处理中,根据不同的Tab,动态添加相应的IFRAME之后当我点击标题时没内容。请问红色代码该怎么改?如下图:

举报
wenwen1
发帖于5年前 0回/835阅
顶部