extjs 弹出html页面跳转,Extjs打开window窗口自动加载html网页

Window inherits the autoLoadconfig option from Panel. Note that I included all config options below, where most are optional:

var w = newExt.Window({

autoLoad: {

url:"someApplicationURL",

params: {

firstName:"Shuman",

lastName:"Human"},

callback: someCallbackFuncion,

scope: someObjectObject,

discardUrl:true,

nocache:true,

text:"Loading...",

timeout:60,

scripts:false},

height:300,

width:600});

Keep in mind that this only supports URLs which are in the context of your application's domain, i.e. you can't plug in a URL of 'http://www.google.com' and expect it to work.

意思是说只能打开自己的应用程序,而网上的类似百度谷歌打不开的。只能在window里面内嵌一个panel即可打开

LOOK:

var center=newExt.TabPanel({

style:"padding:0 5px 0 5px",

region:"center",

activeItem:0,

enableTabScroll:true,

layoutOnTabChange:true,

autoScroll:true,

items:[{

xtype:"panel",

id:"index",

iconCls:"homemanage",

title:"测试",

html:""}]

});

Ext.onReady(function(){var vp=newExt.Viewport({

layout:"border",

items:[center]

});

})

我自己写了一个,也基本上差不多就是这个样子:

1508ff77da2cadc346b61e50a1a5802d.png

seePdfDocument : function(){if(!this.seePdfWin){this.seePdfWin = newExt.Window({

title : docNo+ '报表预览页',

modal :true,

width :1270,

height :600,

layout :'fit',

draggable :true,

resizable :true,

closeAction :'hide',//autoLoad : { url: 'http://www.qq.com',scripts: true, nocache: true}

items:[{

xtype:"panel",

id:"index",

iconCls:"homemanage",

title:"baidu一下 你就know",

html:""}]//items : [pdfHeadManagerPanel]

});

}this.seePdfWin.show();

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值