var tabs = new Ext.TabPanel({
        renderTo: document.body,
        deferredRender: false,
        activeTab: 0,
        frame: true,
        plain: true,
        defaults: { preventBodyReset: true, autoScroll: true, autoHeight: true, autoWidth: true },
        items: [{
            title: '企业基本信息',
            autoLoad: { url: 'RegisterInfo.asmx/getEnterpriseBaseInfo', params: '', scope: window, scripts: true }
        }
        ]
    });以上代码是创建一个tabpanel,返回的内容是通过webservice获取的.返回的内容是一段html代码,现在能正常获取返回的内容,但是返回的内容显示为<table>....一类的字符串,如何才能得到返回的内容是已渲染的表格?
谢谢!

解决方案 »

  1.   

    在TabPanel里面嵌入一个HtmlEditor
      

  2.   

    在tab页中嵌入一个iframe,iframe中显示的就认html格式了
      

  3.   

    tabPanel的每一个选项卡是一个panel
        var tabs = new Ext.TabPanel({
             renderTo: document.body,
             deferredRender: false,
             activeTab: 0,
             frame: true,
             plain: true,
             defaults: { preventBodyReset: true, autoScroll: true, autoHeight: true, autoWidth: true },
             items: [{
                 xtype:'panel',
                 title: '企业基本信息',
                 html:"<iframe width=100% height=100%src='RegisterInfo.asmx/getEnterpriseBaseInfo'/>"//参数可以加在src后面
                 }]
         });