PDA

View Full Version : render html ajax in a panel



emilioF
30 Jun 2010, 2:38 AM
hi all
i want render a snippet recived from a servlet. this is my script http://pastebin.com/iEpN5ug1. my problem is that the title of panel disappears O_o. Is correct this method?

BitPoet
30 Jun 2010, 2:59 AM
You need to update the panel's body, not the whole element that represents the panel. Use

Ext.getCmp('lista').body.update(objServerResponse.responseText);

emilioF
30 Jun 2010, 3:15 AM
thank you very much :)