kd21
2 Feb 2007, 7:07 AM
hi
i have create one tabpanel with four tabs
when i click history tab then through ajax another page be come on this tabpanel but
this coming file is a jsp file, which already have another tabs
but i have seen only text data not full original page with all tabs...
my code are like this....
tabs = new YAHOO.ext.TabPanel('tabs');
tabs.addTab('createorder', "Create Order");
var newtab =tabs.addTab('history', "History");
var updater = newtab.getUpdateManager();
updater.setDefaultUrl('tabs.jsp');
newtab.on('activate', updater.refresh, updater, true);
......................................................................................
tabs.jsp
<%@ page import="java.util.*;"%>
<% response.setContentType("text/html");%>
<html>
<head>
<title>Layout</title>
<head>
<script type="text/javascript" src="http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/utilities_2.1.0.js"></script>
<link rel="stylesheet" type="text/css" href="yui-ext.0.33/resources/css/yui-ext.css" />
<script type="text/javascript" src="yui-ext.0.33/yui-ext.js"></script>
<script type="text/javascript" src="test.js"></script>
</head>
<body scroll="no" id="layout">
<div id="tabs1">
<div id="innertab">
inner tab
<div id="in1">inner tab 1 content </div>
<div id="in2">inner tab 2 content </div>
</div>
<div id="tab2">second </div>
<div id="tab3">third </div>
I want to add tab pannel here
</div>
<div id="tree-view"></div>
</body>
</html>
----------------------------------------------------------
i know i hv doing some silly mistake plz guide me
thanks in advanced
kd21
i have create one tabpanel with four tabs
when i click history tab then through ajax another page be come on this tabpanel but
this coming file is a jsp file, which already have another tabs
but i have seen only text data not full original page with all tabs...
my code are like this....
tabs = new YAHOO.ext.TabPanel('tabs');
tabs.addTab('createorder', "Create Order");
var newtab =tabs.addTab('history', "History");
var updater = newtab.getUpdateManager();
updater.setDefaultUrl('tabs.jsp');
newtab.on('activate', updater.refresh, updater, true);
......................................................................................
tabs.jsp
<%@ page import="java.util.*;"%>
<% response.setContentType("text/html");%>
<html>
<head>
<title>Layout</title>
<head>
<script type="text/javascript" src="http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/utilities_2.1.0.js"></script>
<link rel="stylesheet" type="text/css" href="yui-ext.0.33/resources/css/yui-ext.css" />
<script type="text/javascript" src="yui-ext.0.33/yui-ext.js"></script>
<script type="text/javascript" src="test.js"></script>
</head>
<body scroll="no" id="layout">
<div id="tabs1">
<div id="innertab">
inner tab
<div id="in1">inner tab 1 content </div>
<div id="in2">inner tab 2 content </div>
</div>
<div id="tab2">second </div>
<div id="tab3">third </div>
I want to add tab pannel here
</div>
<div id="tree-view"></div>
</body>
</html>
----------------------------------------------------------
i know i hv doing some silly mistake plz guide me
thanks in advanced
kd21