Я использую следующий код для отображения панели сенча. То, что я пытаюсь сделать, это извлечь контент из CMS с помощью json. Все, что я пытаюсь получить ответ на заполнение «html:» не удается. Может я просто не понимаю сферу?
App.views.howAttend = Ext.extend(Ext.Panel, {
initComponent: function () {
var resp = Ext.Ajax.request({
scope: this,
url: 'mobile-request/pages/how-attend',
success: function ( response ) {
var obj = Drupal.parseJson( response.responseText );
console.log(obj); // this is as expected
//this.html = obj.data doesn't work, neither does using obj.data below, in html:
},
failure: function ( response ) {
console.log (' server error ' + response.status);
}
})
//console.log(this);
App.views.howAttend.superclass.initComponent.call(this);
},
html: 'Nothing'// need to get html returned to here
});