drhelga
2 Dec 2009, 12:21 PM
Hi there,
maybe i'm just too dump to solve this, but I'm running out of ideas ...
i have extended a form panel like this:
Application.locationInfo = Ext.extend(Ext.form.FormPanel,{
title: 'Location Information',
border: false,
padding: 10,
defaultType: 'textfield',
defaults: {anchor: '100%'},
initComponent: function()
{
var config = {
items: [{
fieldLabel: 'Street',
name: 'street'
}],
api: {
load: Json.doLoad
},
buttons: [{
text: 'Load',
handler: function() {
this.load();
},
scope: this
}]
};
Ext.apply(this, Ext.apply(this.initialConfig, config));
Application.locationInfo.superclass.initComponent.apply(this, arguments);
},
onRender: function()
{
Application.locationInfo.superclass.onRender.apply(this, arguments);
this.load();
}
});
Ext.reg('locationInfo', Application.locationInfo);When putting this 'on stage' in the following code:
Ext.ns('Application');
Ext.onReady(function() {
Ext.QuickTips.init();
var accordion = new Ext.Panel({
layout: 'accordion',
renderTo: Ext.getBody(),
title: 'My Profile',
width: 300,
height: 240,
items: {xtype:'locationInfo'}
});
});I permanently get the error: this.processResponse is not a function
if i just spaghetti-code this stuff in one Ext.onReady function everything works fine.
I'm really going nuts with this,
i tried to set the scope at about 100.000.000 different places, i tried to set namespaces like the devil himself, but somehow i really really stuck ...
can someone please ease my mind?
maybe i'm just too dump to solve this, but I'm running out of ideas ...
i have extended a form panel like this:
Application.locationInfo = Ext.extend(Ext.form.FormPanel,{
title: 'Location Information',
border: false,
padding: 10,
defaultType: 'textfield',
defaults: {anchor: '100%'},
initComponent: function()
{
var config = {
items: [{
fieldLabel: 'Street',
name: 'street'
}],
api: {
load: Json.doLoad
},
buttons: [{
text: 'Load',
handler: function() {
this.load();
},
scope: this
}]
};
Ext.apply(this, Ext.apply(this.initialConfig, config));
Application.locationInfo.superclass.initComponent.apply(this, arguments);
},
onRender: function()
{
Application.locationInfo.superclass.onRender.apply(this, arguments);
this.load();
}
});
Ext.reg('locationInfo', Application.locationInfo);When putting this 'on stage' in the following code:
Ext.ns('Application');
Ext.onReady(function() {
Ext.QuickTips.init();
var accordion = new Ext.Panel({
layout: 'accordion',
renderTo: Ext.getBody(),
title: 'My Profile',
width: 300,
height: 240,
items: {xtype:'locationInfo'}
});
});I permanently get the error: this.processResponse is not a function
if i just spaghetti-code this stuff in one Ext.onReady function everything works fine.
I'm really going nuts with this,
i tried to set the scope at about 100.000.000 different places, i tried to set namespaces like the devil himself, but somehow i really really stuck ...
can someone please ease my mind?