PDA

View Full Version : [CLOSED]Why Ext.Window shows two times?



maxkliver
11 Dec 2012, 11:10 PM
I have a window what showed by button click:


x = new Ext.Window({
id: 'myWindow',
layout: 'fit',
autoScroll:false,
width:600,
autoLoad : {
url : url_servlet+"form.jsp?bdon=1&ss="+str,
scripts: true
}
})
x.show();

you see that content for window i get from another jsp. There is Tab Panel:



<fmt:setBundle basename="content.Language"/>
<c:set var="page" value="myViewPage"/>
<%
String str=request.getParameter("ss");
String bdon=request.getParameter("bdon");
%>
<html>
<head>
<head>
<body>
<script type="text/javascript">
//alert(<%=bdon%>);
function highlightWindow() {
var win = Ext.getCmp('myWindow');
var winBody= win.body;
//var store_form=null;
winBody.highlight();

var tabs = new Ext.TabPanel({
type:'tabpanel',
deferredRender: false,
activeTab: 0,
bodyStyle:'padding:5px 5px 0',
autoScroll: false,
layoutOnTabChange: true,
height:400,
hideMode: 'offsets',

items: [searchform,zemform,reallyform,docform,podform]
});
tabs.render(winBody);
}
highlightWindow.defer(1000);
</script>
</body>
</html>

My problem in window render. If i click button first time i get window. Its okey. After i close window and click button again. And see two windows (one draggable another no), and two calls to jsp with my content.
40742
Whats wrong?

mitchellsimoens
13 Dec 2012, 11:30 AM
By the title you have closed, does that mean you have fixed your issue?