选项卡效果ajax

http://www.noupe.com/javascript/37-great-ajax-css-tab-based-interfaces.html

Ext2.0中tab iframe的配置


http://www.diybl.com/course/1_web/webjs/200877/132122.html
Ext.ux.IFrameComponent = Ext.extend(Ext.BoxComponent, {
     onRender : function(ct, position){
          this.el = ct.createChild({tag: ''iframe'', id: ''iframe-''+ this.id, frameBorder: 0, src: this.url});
     }
})




var szPanel=viewport.findById(id);
            if(szPanel==null)
            {
               szPanel=new Ext.Panel({
                    id:id,
                    title:t,
                    closable:true,
                    layout:''fit'',
                    items: [ new Ext.ux.IFrameComponent({ id: id, url: 'http://www.g.cn'}) ]
               });
                  tabs.add(szPanel);

你可能感兴趣的:(JavaScript,java,Ajax,css,ext)