用于调用html页面的Contentpane查询

时间:2013-10-27 11:06:30

标签: javascript dojo dijit.form

我的项目空间中有一个 tab_dojo.html 页面,我在同一个项目的jsp页面中使用内容窗格的href函数进行调用。此处 tab_dojo.html 中包含树状结构。但是,当我点击选项卡时,页面将被调用,并且预览时显示树消息的标题,但树没有显示。

有人可以说为什么会这样吗?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="screen">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<style>
.screen {height: 900px; width: 1200px; margin: 0; padding: 0;}
</style>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dijit/themes/tundra/tundra.css"/>
<script type="text/javascript" djConfig="parseOnLoad: true" src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js"></script>

<script type="text/javascript">
dojo.require("dijit.form.Button");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.TabContainer");
</script>
</head>
<body class="screen tundra">

<div dojoType="dijit.layout.TabContainer" style="width:2000px;height:1800px">
<div dojoType="dijit.layout.ContentPane" title="View1 tree" href="tab_dojo.html">Site view</div>
<div dojoType="dijit.layout.ContentPane" title="View2 tree"selected="true">vuew2</div>
</div>

</body>
</html>

1 个答案:

答案 0 :(得分:0)

这是未来读者的方法。感谢所有的建议,包括jsp中的html,并以这种方式调用它将起作用

<div dojoType="dijit.layout.TabContainer" style="width:900px;height:1200px">
<div dojoType="dijit.layout.ContentPane"  title="Test"  >
<jsp:include page="your.jsp" />
</div> </div>
相关问题