EXT 链接问题 求解答
我的问题是多个链接点击进入同一个页面(如:点击aa、bb、cc进出新窗口A)但是页面A的标题要随(aa、bb、cc)链接的标题改动然后再点击新的窗口A中的一个新建button进入新页面,页面要和aa、bb、cc的ID判断的(就是说点击aa的A页面的新建后要打开和aa相关的页面)有点罗嗦了,请大家帮忙
下面是代码:
导航条如下:
下面是代码:
导航条如下:
var windowIndex = 0;
MyDesktop.BogusMenuModule = Ext.extend(MyDesktop.BogusModule, {
init: function () {
this.launcher = {
text: 'Bogus Submenu',
iconCls: 'bogus',
handler: function () {
return false;
},
menu: {
items: [{
id: 'Window ' + (++windowIndex),
text:'aa',
iconCls: 'bogus',
handler: this.createWindow,
scope: this,
windowId: windowIndex
}, {
id: 'Window ' + (++windowIndex),
text: 'bb',
iconCls: 'bogus',
handler: this.createWindow,
scope: this,
windowId: windowIndex
}, {
id: 'Window ' + (++windowIndex),
text: 'cc',
iconCls: 'bogus',
handler: this.createWindow,
scope: this,
windowId: windowIndex
}, {
id: 'Window ' + (++windowIndex),
text: 'dd',
iconCls: 'bogus',
handler: this.createWindow,
scope: this,
windowId: windowIndex
}, {
id: 'Window '+(++windowIndex),
text: 'ee',
iconCls: 'bogus',
handler: this.createWindow,
scope: this,
windowId: windowIndex
}]
}
}
}
});
//----点击按钮进入同一个页面但是标题不同如下:
MyDesktop.BogusModule = Ext.extend(Ext.app.Module, {
init: function () {
this.launcher = {
text: 'Window ' + (++windowIndex),
iconCls: 'bogus',
handler: this.createWindow,
scope: this,
windowId: windowIndex
}
},
//--------
//---点击新建弹出的窗口 wasiaWindow: function () {
var desktop = this.app.getDesktop();
var win = desktop.getWindow('aaaaa');
if (!win) {
win = desktop.createWindow({
id: 'aaaaa', title: '瓦斯抽采', iconCls: 'jihuaziji', width: 665, height: 510, plain: true, resizable: false, layout: 'border',
buttons: [
{ text: '保 存', height: 40, handler: function () { } },
{ text: '重 置', height: 40,
handler: function () {
Ext.getCmp('text1').setValue('');
}
}]
});
}
win.show();
},
//---结束
//--------
createWindow: function (src) {
var desktop = this.app.getDesktop();
var win = desktop.getWindow('bogus' + src.windowId);
if (!win) {
win = desktop.createWindow({
id: 'bogus' + src.windowId,
title: src.id,
width: 640,
height: 480,
tbar: { xtype: 'toolbar', height: 30,
items: [{
xtype: 'button',
text: '新建',
width: 60,
//问题是下面 怎样点击新建的时候进入不同的页面 ?我让他alert个值弹出对了 就是不弹出窗口 各位给看一下
handler: function () {
if (src.id == 'Window 1') {
//alert('1dao');
this.wasiaWindow;
} else if (src.id == 'Window 2') {
alert('2 dao');
} else if (src.id == 'Window 3') {
alert('3 dao');
} else if (src.id == 'Window 4') {
alert('4 dao');
} else if (src.id == 'Window 5') {
alert('5 dao');
}
}, scope: this
}]
}
});
}
win.show();
}
});
...全文
相关推荐
Ext GridPanel 中实现加链接操作
Ext GridPanel 中实现加链接操作 Ext GridPanel 中实现加链接操作 Ext GridPanel 中实现加链接操作
ext生成树节点带链接
extjs生成树菜单,多个子节点,支持无限分类,并且各个子菜单链接都加上,点击可触发相应的事件处理或者页面跳转。这个本来是在yii后台用的
Ext javascript建立超链接,进行事件处理的实现方法
1,如何在javasript建立超链接 [removed] //方法一: location.href=’网址’; //方法二: [removed](‘<a>文字</a>’); [removed] 2,应用到Ext中的树控件事件处理 tree_03.js 代码如下:Ext.onReady(function(){ var root = new Ext.tree.TreeNode({ //tree,这里没有function,使用json格式 id:1, text:”linjq” }); var c1 = new Ext.tr
Windows读取Ext4分区的工具 Ext2Read
Ext2Read 它能查看 ext2/3/4 分区并从中拷贝文件和目录,支持 LVM2 和 EXT4 extent ,以及递归拷贝整个目录。
在windows下使用Ext2Fsd访问EXT4分区
在windows下使用Ext2Fsd可以访问EXT4格式的分区,试试吧


