日期:2014-05-17  浏览次数:20671 次

不使用frameset标签如何实现一个页面包含两个窗体?
要实现如下页面代码的功能:

<%@page pageEncoding="UTF-8"%>
<%@include file="/supres/template/common.jsp"%>
<%@taglib uri="http://www.ccb.cn/xmdc" prefix="xmdc"%>
<%
String RepositoryURL = RepositoryUtil.instance.getProValue("modify");
//System.out.println(RepositoryURL);
if (RepositoryURL == null || RepositoryURL.trim().equals("")) {
out.println("<script>alert('无法获得知识库查询URL信息!系统跳转失败!')</script>");
}

%>
<%@page import="cn.ccb.ccrm.repository.util.RepositoryUtil"%>
<html>
<title>知识库系统</title>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Content-Type" content="text/html" />

</head>


<frameset rows="*" cols="*" frameborder="1" border="0" framespacing="0">
<frameset rows="50,*" cols="*" framespacing="0" frameborder="0"
scrolling="No" border="0">
<frame src="tips.html" name="myFrame" id="myFrame" scrolling="No" />
<frame src="<%=RepositoryURL %>" name="mainFrame" id="mainFrame"
class="width" title="mainFrame">
</frameset>
</frameset>
</html>

不用frameset页面框架实现,还有其他方法吗?
注:RepositoryURL为外系统的一个页面,已知该页面的一个js代码与frameset框架有冲突。
因此要换其他的实现方式。
希望论坛的大侠指点指点。
万分感激!!!

------解决方案--------------------
用<iframe>页面框架试试呢?
------解决方案--------------------
直接include进来
然后页面上加上 
<font color="red" >&nbsp;&nbsp;&nbsp;&nbsp;注意保密、请勿外传!</font>
 
------解决方案--------------------
=.=为什么要两个窗体~~~要页面的话直接AJAX加载好了·~~速度还快~~~给它个div就好了