PDA

View Full Version : ContentPanel to Panel, where did setUrl vanished?



Androrion
31 Jan 2008, 9:18 AM
Hi,

Looking at the differences between 1.x and 2.0, I saw that the former "ContentPanel" had a quite useful method "setUrl". Reading the migration guide from 1.x to 2.0, I see that ContentPane is replaced by Panel, but I can't find the setUrl method anymore in the 2.0 API doc. Could you help me with that?

Thanks a lot.

devnull
31 Jan 2008, 9:23 AM
Trying to dig into my memory, this was the function that loaded the content of the panel from a url after render?
If so, look at the Panel's load() method.

Androrion
31 Jan 2008, 10:13 AM
Thank you very much, I think I need a new pair of eyes.... :P

Androrion
1 Feb 2008, 12:57 AM
I wrote this very simple code with the load method :
Ext.onReady(function(){

var myMain = new Ext.Panel({
renderTo:"main",
collapsible:false
});

myMain.load({url:"main1.html"});

});

This doesn't seem to work, any idea?