Window inherits the autoLoadconfig option from Panel. Note that I included all config options below, where most are optional:
var w = new Ext.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=new Ext.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=new Ext.Viewport({
layout:"border",
items:[center]
});
})
我自己写了一个,也基本上差不多就是这个样子:
seePdfDocument : function(){
if(!this.seePdfWin){
this.seePdfWin = new Ext.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();
}
01第一个批处理文件 window开机自动加载批处理文件
1 批处理文件用来加载python程序 批处理的文件名称为:Hello.bat @echo off C: cd C:\Users\\Desktop\python\HelloWorld\HelloWo ...
打开jsp页面自动加载多个Action的实现方法
平时我们加载Action的时候都是提交表单,或者点击按钮以后才能发起Action请求. 现在我要实现一个功能:打开一个网站的首页从数据库中立刻读取多条不同表中的数据显示在页面上.这个时候要发起多个Ac ...
32位汇编第二讲,编写窗口程序,加载资源,响应消息,以及调用C库函数
32位汇编第二讲,编写窗口程序,加载资源,响应消息,以及调用C库函数 (如果想看所有代码,请下载课堂资料,里面有所有代码,这里会讲解怎么生成一个窗口程序) 一丶32位汇编编写Windows窗口程序 首 ...
laravel5.2总结--composer使用和自动加载介绍
首先看下phpcomposer官方的定义,composer是 PHP 用来管理依赖(dependency)关系的工具.你可以在自己的项目中声明所依赖的外部工具库(libraries),Composer ...
autocad2008+C#2008开发中设置自动加载dll
一.复制编译后的dlll路径,比如我的是D:\zjy\cad开发\学习\宗地图\bin\Debug\zd.dll 二.随便找个地方新建一个记事本,在记事本中写入以下内容: (command " ...
jQuery自动加载更多程序
1.1.1 摘要 现在,我们经常使用的微博.微信或其他应用都有异步加载功能,简而言之,就是我们在刷微博或微信时,移动到界面的顶端或低端后程序通过异步的方式进行加载数据,这种方式加快了数据的加载速度,由 ...
当滚动条滚动到页面底部自动加载增加内容的js代码
这篇文章主要介绍了如何使用javscript实现滚动条滚动到页面底部自动加载增加页面内容,需要的朋友可以参考下..1,注册页面滚动事件,window.onscroll = function(){ }; ...
页面滚动动态加载数据,页面下拉自动加载内容 jquery
html>
< script src="js/jquery.js" type=" ...Jquery页面滚动动态加载数据,页面下拉自动加载内容
html>