The Competition [Archive] - The Omni Group Forums:: 30 posts - Last post: Jul 12, 2006When you close a tab it goes back to the last tab you had open NOT . the command-tab panel, which is my primary method of switching apps. http://forums.omnigroup.com/archive/index.php/t-135.htmlHOME | Hi,
sorry for my bad English.
I have following problem with Tabpanel. When I switch the view (from Icon view to Detail view) within a tab and after that I close the tab. The tab doesn't opens again.
I think the problem is because the node.id is not destroyed.
Please help me, I am a beginner in ExtJS.
Here the code: album.js
/*
* File: album.js
* Date: 24-Nov-2007
* By : Kevin Esteb
* Changed: Marco
*
* This module will handle the album system.
*/
Ext.namespace('site.album');
site.album = function() {
return {
createWindow: function(app) {
var desktop = app.getDesktop();
var win = desktop.getWindow('album-win'); [#SAK-263] Unjoin button doesn't work in IE6 - IET UC Davis:: When I try to "Unjoin" a project site under the Membership tab with Internet Explorer 6, SP2, the second "Unjoin" button does not work. I am http://jira.ucdavis.edu/jira/browse/SAK-263;jsessionid=55E595D220E7934D0BF6A997349489DB?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanelHOME | Luxor XUL Tag Reference: Luxor XML User Interface Language (XUL :: tab, Defines a single tab. tabpanels, Holds a set of pages in a tabbox. .. Note, that you can either specify map or list , but not both at the same time. http://luxor-xul.sourceforge.net/luxorref.htmlHOME |
var tabNode;
var photoNode;
var west_panel = new Ext.tree.TreePanel({
animate: true,
enableDD: true,
containerScroll: true,
rootVisible: false,
iconCls: 'bogus',
region: 'west',
width: 170,
split: true,
collapsible: true,
title: 'Selections',
autoScroll: true,
margins: '3 0 3 3',
loader: new Ext.tree.TreeLoader({
dataUrl: 'get-dir.php'
})
});
var root = new Ext.tree.AsyncTreeNode({
text: 'Selections',
draggable: false,
id: 'album-tree'
});
west_panel.setRootNode(root);
west_panel.on('click', on_tree_click, this);
var center_panel = new Ext.TabPanel({
region: 'center',
margins: '3 3 3 0',
activeTab: 0,
layoutOnTabChange: true,
enableTabScroll: true,
monitorResize: true,
items: [{
title: 'Usage',
closable: false,
autoScroll: true,
html: 'Hallo '
}]
});
if (!win) {
win = desktop.createWindow({ Implementing and configuring NFS on Windows Server:: Switch to the second tab panel of this Window, “Simple Mapping.” Then check the box labeled “Use . (It doesn’t matter since both open the same window. http://www.interopsystems.com/LearningCenter/Implement_Configure_NFS.htmHOME |
id: 'album-win',
title: "Foto Album",
width: 740,
height: 480,
iconCls: 'tabs',
shim: false,
animCollapse: false,
border: false,
constrainHeader: true,
layout: 'border',
items: [west_panel, center_panel]
});
} [#VWR-4282] object name in general tab => becomes empty space :: All submissions to this site are governed by Second Life Project open the generatl tab with the empty space; key in a SHORT file name (=up to 8 digits) http://jira.secondlife.com/browse/VWR-4282;jsessionid=44C244EAAF728302DC7351159E3471D3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanelHOME | 9 Practical Ways to Enhance your Web Development Using the Firefox :: You can achieve the same results by using the Miscellaneous > Edit HTML Markup option which will open up the Edit HTML tab panel displaying the XHTML of the http://sixrevisions.com/rapid-development/9-practical-ways-to-enhance-your-web-development-using-the-firefox-web-developer-extensionHOME |
root.expand(true);
win.show();
win.toFront();
function on_photo_click(d,index, node, event) {
photoNode = node;
var nodeId = node.id;
var imgsize = node.imgsize;
var width = node.imgsizeW;
var height = node.imgsizeH;
showImage(nodeId,name,width,height);
}
function showImage(nodeId,name,width,height){
var array = nodeId.split('/');
var photo_id = array.join('-');
var win = desktop.getWindow(photo_id);
var win = desktop.getWindow(photo_id);
if (!win) {
win = desktop.createWindow({
id: photo_id,
title: name,
width: 700,
height: 540,
iconCls: 'bogus',
layout: 'fit',
autoScroll: true,
resizable: false,
minimizable:true,
maximizable:false,
html: '
Hi Condor,
the problem is the same.
here the change:
var center_panel = new Ext.TabPanel({
region: 'center',
margins: '3 3 3 0',
activeTab: 0,
layoutOnTabChange: true,
enableTabScroll: true,
monitorResize: true,
autoDestroy:true,
items: [{
title: 'Usage',
closable: false,
autoScroll: true,
html: 'Hallo '
}]
});
here is the firebug output:
Ext.fly(B) has no properties
initComponent(Object initialConfig=Object id=images/thumbs closable=true)ext-all.js (line 86)
on_tree_click([Node images/thumbs] childrenRendered=true rendered=true, Object browserEvent=Event mouseout button=0 type=mouseout, undefined)album.js (line 271)
Observable()ext-all.js (line 12)
Observable()ext-all.js (line 12)
initComponent("click", [Node images/thumbs] childrenRendered=true rendered=true, Object browserEvent=Event mouseout button=0 type=mouseout, undefined, undefined, undefined, undefined)ext-all.js (line 99)
Tree("click")ext-all.js (line 55)
TreeNodeUI()ext-all.js (line 104)
TreeNodeUI(Object browserEvent=Event mouseout button=0 type=mouseout)ext-all.js (line 104)
TreeEventModel(Object browserEvent=Event mouseout button=0 type=mouseout, [Node images/thumbs] childrenRendered=true rendered=true)ext-all.js (line 100)
TreeEventModel(Object browserEvent=Event mouseout button=0 type=mouseout, span#extdd-12)ext-all.js (line 100)
EventManager(Object browserEvent=Event mouseout button=0 type=mouseout)ext-all.js (line 13)
getViewWidth(click clientX=0, clientY=0)ext-base.js (line 10)
[Break on this error] Ext.TabPanel=Ext.extend(Ext.Panel,{monitorResize:t rue,deferredRender:true,tabWid...
Regards
Marcoi
any other ideas?
These two might help:
http://extjs.com/forum/showthread.php?p=91969#post91969
http://extjs.com/forum/showthread.php?p=94096#post94096
Review both threads thoroughly and see they apply. :-?
When i'am not change the active tab in symbol or detail view, i can close the tab and reopen it. I think the problem is in onSymbolClick and onDetailClick.
It is probably easier to not destroy the tabpage and use the following checks instead:
1. check if the panel with the specified id exists and if not, create it
2. check if the panel is owned by the tabpanel (using ownerCt) and if not, add it
3. set the panel as the active tab
thank you all for your help. I found the mistake:
var comp = center_panel.getItem(node.id);
instead of:
var comp = Ext.getCmp(node.id);
:D:D:D:D:D:D:D:D:D:D:D:D
Set autoDestroy:true in the tabpanel config.
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home
|