PDA

View Full Version : [FIXED] 4.1: Element Loader this.get is not a function



zombeerose
1 Nov 2011, 10:00 AM
REQUIRED INFORMATION

Ext version tested:

Ext 4.1 rev 0
Browser versions tested against:

FF7 (firebug 1.8 installed)
DOCTYPE tested against:

Strict
Description:

Calling element.load causes error: "this.get is not a function"
Steps to reproduce the problem:

Run the Panel example.
Execute the test code to insert a new panel at the bottom.
Click the Load button on the new panel.
The result that was expected:

The html in the panel should display the content from the url.
The result that occurs instead:

Execution stops from the error.
Test Case:



var p = Ext.create('Ext.panel.Panel',{
buttons: [{
text:'Load',
handler: function(){
var el = this.up('panel').body;
el.load({ url: 'http://www.sencha.com/forum/forumdisplay.php?80-Ext-Bugs' });
}
}],
renderTo: Ext.getBody(),
width: 100,
height: 100,
frame: true
});


HELPFUL INFORMATION

Possible fix:

not provided
Additional CSS used:

only default ext-all.css
Operating System:

WinXP Pro

mitchellsimoens
2 Nov 2011, 10:22 AM
Looks like a simple scoping issue.