Message-ID: <54bX0K$LiZ@bbs.tju.edu.cn>
Subject: 请赐教:js如何替代inframe
Date: Sun, 06 Mar 2011 14:24:20 +0000
From: jieweiping.bbs@bbs.tju.edu.cn.no.spam (要做就做最好)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.web.20140818.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!feeder.erje.net!news.byr.edu.cn!TJU
Newsgroups: cn.bbs.comp.web
Organization: 天大求实BBS站
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: WebDev/M.1299421460.A
Lines: 42
X-Original-Bytes: 1763
Xref: 74.82.202.154 cn.bbs.comp.web:13355


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <base href="<%=basePath%>">
    
  <title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">   

  </head>
    
  <body>
  <table>
  <tr>
  <td><a href="#" onclick="go('a.jsp')">首页</a></td>
  <td><a href="#" onclick="go('b.jsp')">数据</a></td>
  </tr>
  <tr>
  <td id="content" >
    
  </td>
  </tr>
  </table>
   
  </body>
</html>

我想在点首页的时候能把a.jsp页包含到td id为content标签里,效果如下
<td id="content" >
  <jsp:include page="a.jsp"></jsp:include>   
</td>
在点数据时候,能把b.jsp页包含到td id为content标签里,效果如下
<td id="content" >
  <jsp:include pageb.jsp"></jsp:include>   
</td>
怎么能实现这种类似于iframe的动态加载而不用iframe吗?

注:这个a.jsp/b.jsp是通过js传参过去的。

--
※ 来源:.天大求实BBS http://bbs.tju.edu.cn [FROM: 222.36.230.160]