PDA

View Full Version : [CLOSED] What is the best way to load a html document in a ext:Panel?



supera
Jul 10, 2012, 3:02 PM
Hi!

I'm trying load a html document in a ext:Panel, in cliente side (javascript)...

I'm creating a panel this way:



//paneAgreement
var paneAgreement = paneMain.add({
itemId: 'paneAgreement',
layout: 'absolute',
flex: 1,
border: true,
bodyPadding: 6,
autoscroll: true,
defaults: {
'labelAlign': 'top'
}
});


And loading a html document into a panel this way:


paneAgreement.getEl().update(objDAL.TextMDoc); //this property return a html document


In this way, the scrollbars not showed!!!

Thanks for any help!

Daniil
Jul 10, 2012, 5:45 PM
Hi,

It would be best to use the Loader to load anything including HTML.

Please try:

paneAgreement.body.update(objDAL.TextMDoc);
instead of

paneAgreement.getEl().update(objDAL.TextMDoc);

supera
Jul 10, 2012, 6:06 PM
Works very fine...

Thanks a lot Daniil!