Ilan
29 Dec 2007, 11:38 PM
Hi,
When I run my application as normal web, the ext script RowExpander.js works fine. The rows of the grid table expand and collapse properly.
But running the same code in IBM Portal freeze the screen, when clicking the minus symbol to collapse. Outcome is to kill the E.I. browser. FireFox runs fine even on portal.
The problem occurs in the code: Ext.fly(row); Which belongs to element.js.
In the code of element.js is says
/**
* Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -
* the dom node can be overwritten by other code.
* @param {String/HTMLElement} el The dom node or id
* @param {String} named (optional) Allows for creation of named reusable flyweights to
* prevent conflicts (e.g. internally Ext uses "_internal")
* @static
* @return {Element} The shared Element object (or null if no matching element was found)
*/
El.fly = function(el, named){
named = named || '_global';
el = Ext.getDom(el);
if(!el){
return null;
}
if(!El._flyweights[named]){
El._flyweights[named] = new El.Flyweight();
}
El._flyweights[named].dom = el;
return El._flyweights[named];
};
Please tell how to use the second parameter so the portal will not freeze.
When I run my application as normal web, the ext script RowExpander.js works fine. The rows of the grid table expand and collapse properly.
But running the same code in IBM Portal freeze the screen, when clicking the minus symbol to collapse. Outcome is to kill the E.I. browser. FireFox runs fine even on portal.
The problem occurs in the code: Ext.fly(row); Which belongs to element.js.
In the code of element.js is says
/**
* Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -
* the dom node can be overwritten by other code.
* @param {String/HTMLElement} el The dom node or id
* @param {String} named (optional) Allows for creation of named reusable flyweights to
* prevent conflicts (e.g. internally Ext uses "_internal")
* @static
* @return {Element} The shared Element object (or null if no matching element was found)
*/
El.fly = function(el, named){
named = named || '_global';
el = Ext.getDom(el);
if(!el){
return null;
}
if(!El._flyweights[named]){
El._flyweights[named] = new El.Flyweight();
}
El._flyweights[named].dom = el;
return El._flyweights[named];
};
Please tell how to use the second parameter so the portal will not freeze.