PDA

View Full Version : Build yor own Ext don't work



ITweb
31 Aug 2007, 2:36 AM
I try to make ext js smaller by "Build yor own Ext".
We need only BasicDialog support without drag, resize and etc.

When i change "ext-all.js" to new generated "ext.js" in HelloWorld example, i received many errors like this:
- EU has no properties
- Ext.onReady is not a function

Can you help me?

fay
31 Aug 2007, 3:45 AM
Could ext.js have been corrupted when you downloaded it? Ext.onReady will definitely be included in ext.js as it's part of the required Ext Core (EventManager.js). Post some example code that doesn't work and let us know what you selected from "Build your own Ext".

I know it definitely works. In "Build your own Ext" I tried just selecting the Ext Stand-alone, Ext Core, and Dialog - Basic Widget (with no optional features/dependencies). I downloaded the latest Hello example and had to modify the showDialog function in Hello.js:


showDialog : function(){
if(!dialog){ // lazy initialize the dialog and only create it once
dialog = new Ext.BasicDialog("hello-dlg", {
resizable: false, // added as resizable is true by default
draggable: false, // added as draggable is true by default
// removed as requires TabPanel // autoTabs:true,
width:500,
height:300,
shadow:true,
minWidth:300,
minHeight:250,
proxyDrag: true
});
dialog.addKeyListener(27, dialog.hide, dialog);
// removed dialog.addButton('Submit', dialog.hide, dialog).disable();
// removed dialog.addButton('Close', dialog.hide, dialog); }
dialog.show(showBtn.dom);
}

As well as replacing the reference to ext-all.js with ext.js in Hello.html.