Howdy,

how would you read the content of a textfile to render the text within a panel? Recently it works within an IFRAME but is there not a smarter way to go?

Code:
Ext.define('App.view.document.TextPanel' , { 

  extend: 'Ext.Panel',
  alias: 'widget.textpanel',
  tplMarkup: [
    '<div for=".">',
      '<iframe src="http://foobar.com/docs/{uid}.txt"></iframe>',
    '</div>'
  ],  
  
  initComponent: function() {
    this.tpl = Ext.create('Ext.XTemplate', this.tplMarkup);
    this.callParent(arguments);
  },  

  updateView: function(data) {
    this.tpl.overwrite(this.body, data);
  }

});