PDA

View Full Version : [CLOSED] How is the equivalent method of panel.LoadContent() in JavaScript?



supera
Apr 02, 2012, 7:26 PM
Hi

In Asp.net, I use the panel.LoadContent to reload the page set in panel.Load.url...

What is the equivalent method in javascript? I wish call this in a listener click handle.

Daniil
Apr 02, 2012, 7:34 PM
Hi,

Example

#{Panel1}.getLoader().load({ url : "http://ext/net" });

See also
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.AbstractComponent-method-getLoader
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.ElementLoader-method-load

supera
Apr 02, 2012, 9:03 PM
Works fine!

Thanks a lot, Daniil!