3abbess
3 Jul 2007, 2:09 AM
Hi there, i'm testing contentPanel and some times i get this error : Ext.EventObject has no properties on Firefox and always get it on ie ..
this is my code
Simple = function() {
return {
init : function() {
var northPanel, southPanel, eastPanel, westPanel, centerPanel;
var mainLayout = new Ext.BorderLayout(document.body, {
north: {
split: false,
initialSize: 100,
titlebar: true,
collapsible: true
},
west: {
split: false ,
collapsible: true,
initialSize: 180,
titlebar: true
},
center: {
autoScroll: true
}
});
mainLayout.beginUpdate();
mainLayout.add('north', new Ext.ContentPanel('north-div', {
fitToFrame: true, closable: false
}));
mainLayout.add('west', new Ext.ContentPanel('west-div', {
fitToFrame: true, closable: false
}));
mainLayout.add('center', centerPanel = new Ext.ContentPanel('center-div', {
fitToFrame: true
}));
mainLayout.endUpdate();
centerPanel.load({url: 'content.php', scripts: true, text: "Chargement..."});
centerPanel.refresh();
}
};
}();
Ext.EventManager.onDocumentReady(Simple.init, Simple, true);
this is my code
Simple = function() {
return {
init : function() {
var northPanel, southPanel, eastPanel, westPanel, centerPanel;
var mainLayout = new Ext.BorderLayout(document.body, {
north: {
split: false,
initialSize: 100,
titlebar: true,
collapsible: true
},
west: {
split: false ,
collapsible: true,
initialSize: 180,
titlebar: true
},
center: {
autoScroll: true
}
});
mainLayout.beginUpdate();
mainLayout.add('north', new Ext.ContentPanel('north-div', {
fitToFrame: true, closable: false
}));
mainLayout.add('west', new Ext.ContentPanel('west-div', {
fitToFrame: true, closable: false
}));
mainLayout.add('center', centerPanel = new Ext.ContentPanel('center-div', {
fitToFrame: true
}));
mainLayout.endUpdate();
centerPanel.load({url: 'content.php', scripts: true, text: "Chargement..."});
centerPanel.refresh();
}
};
}();
Ext.EventManager.onDocumentReady(Simple.init, Simple, true);