i am using ext js - javascript library. i wrote a program using ext class. when i was executing it, it was giving error, that ext class is not found. then how can i set the path of ext class. or there is any other way to implement this js file?
EXT js-javascript library
Collapse
X
-
[CODE=javascript]Ext.onReady(fun ction(){Originally posted by gitshi ...
please post the code you have and how you have included the ext-lib.
kind regards
var win;
var button = Ext.get('show-btn');
button.on('clic k', 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:'hi de',
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);
});
});
[/CODE]
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]Comment
Comment