PDA

View Full Version : Erro open windows second time!!



scarenci
5 Nov 2007, 4:18 AM
Hello people,

My question is why when I open the window for the second time it gives error:

Ext.fly(A) has no properties
[Break on this error] Ext.Panel=Ext.extend(Ext.Container,{baseCls:"x-panel",collapsedCls:"x-panel-coll...



Example.BogusModule1 = Ext.extend(Ext.app.Module, {
init : function(){
this.launcher = {
text: 'liberation',
iconCls:'bogus',
handler : this.createWindow,
scope: this,
windowId:windowIndex
}
},

createWindow : function(src){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('liberation');
if(!win){
win = desktop.createWindow({
id: 'liberatioin',
title:src.text,
width:640,
height:480,
html : '<p>Something useful would be in here.</p>',
handler : this.createWindowConfiguration,
iconCls: 'bogus',
shim:false,
animCollapse:false,
constrainHeader:true
});
}
win.show();
},

createWindowConfiguration : function(src){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('liberation');

var tabs = new Ext.TabPanel({
region: 'center',
margins:'3 3 3 0',
activeTab: 0,
defaults:{autoScroll:true},

items: [{
title: 'User Data',
contentEl: 'user',
autoLoad: {url: 'http://192.168.15.41/obelisk2/scripts/Ext/Obelisk/php/Events.php', params: '&i=0'}
},{
title: 'Sip',
contentEl: 'sip',
autoLoad: {url: 'http://192.168.15.41/obelisk2/scripts/Ext/Obelisk/php/Events.php', params: '&i=0'}
},{
title: 'Iax',
contentEl: 'iax',
html : '<p>test</p>'
},{
title: 'Information',
html : '<p> Liberation is a party dedicated to configuration and release of the users, and also the turnouts sip and iax.</p>'
}]
});

// Panel for the west
var nav = new Ext.Panel({
title: 'Users',
contentEl: 'button',
region: 'west',
split: true,
width: 100,
collapsible: true,
margins:'3 0 3 3',
cmargins:'3 3 3 3',
autoLoad: {url: 'http://192.168.15.41/obelisk2/scripts/Ext/Obelisk/php/buttonLeftUser.php', params: '&i=0'}
});

if(!win){
win = desktop.createWindow({
id: 'liberation',
title:src.text,
width:640,
height:480,
// html : '<p>Something useful would be in here.</p>',
iconCls: 'bogus',
shim:false,
animCollapse:false,
constrainHeader:true,
border:false,
plain:true,
layout: 'border',

// layout: 'fit',
items: [nav, tabs]

});

}

win.show();
}
});


I thank you for any help

scarenci
5 Nov 2007, 12:27 PM
what was wrong was the relod the target page! As I do this? Example:


php

echo "<input type=\"button\" onClick=\"?????????\">";



Anyone can help??