hi ...
please post the code you have and how you have included the ext-lib.
kind regards
- Ext.onReady(function(){
-
var win;
-
var button = Ext.get('show-btn');
-
-
button.on('click', function(){
-
// create the window on the first click and reuse on subsequent clicks
-
if(!win){
-
win = new Ext.Window({
-
el:'hello-win',
-
layout:'fit',
-
width:500,
-
height:300,
-
closeAction:'hide',
-
plain: true,
-
-
items: new Ext.TabPanel({
-
el: 'hello-tabs',
-
autoTabs:true,
-
activeTab:0,
-
deferredRender:false,
-
border:false
-
}),
-
-
buttons: [{
-
text:'Submit',
-
disabled:true
-
},{
-
text: 'Close',
-
handler: function(){
-
win.hide();
-
}
-
}]
-
});
-
}
-
win.show(this);
-
});
-
});
-
this is my code. when i clicked on button, then will not be executed. where can i put this file or how can i execute it?
here, the code is to use open a dialog, implemented in html file
[HTML]<div id="hello-win" class="x-hidden">
<div class="x-window-header">Hello Dialog</div>
<div id="hello-tabs">
<!-- Auto create tab 1 -->
<div class="x-tab" title="Hello World 1">
<p>Hello...</p>
</div>
<!-- Auto create tab 2 -->
<div class="x-tab" title="Hello World 2">
<p>... World!</p>
</div>
</div>
</div>[/HTML]