function dashboard_mhs(){ var panel_main = new Ext.Panel({ title: 'Dashboard', iconCls: 'silk-dash', layout:'fit', items:[{ xtype: 'htmleditor', fieldLabel: '', autoScroll: true, id: 'infomhs', readOnly: true, }], listeners:{ afterrender: module_afterrender } }); function module_afterrender(){ Ext.Ajax.request({ url: BASE_URL + 'dashboard_controller/infomhs', method: 'POST', success: function(response) { obj = Ext.util.JSON.decode(response.responseText); //console.log(obj.deskripsi); var x = Ext.decode(response.responseText); if(x.status == false){ Ext.Ajax.request({ url: BASE_URL + 'user/ext_logout', method: 'POST', success: function(xhr) { localStorage.removeItem('access_token'); window.location = BASE_URL + 'user/login'; } }); } Ext.getCmp("infomhs").setValue(obj.data); } }); } get_content(panel_main); Ext.getCmp('infomhs').getToolbar().hide(); }