spawn150
13 Jul 2007, 12:45 AM
Hi all,
I've some problems with the grid when I call the destroy() method, just in IE6. When I call the method, the grid is removed, but if I use a Ext.Resizable component, it remains there in the mask, how can I remove it? Other problem: if I close the brower after the call of the destroy() method, I receive the error that you can see into the error.jpg image attached.
this is the code that fails into prototype.js:
stopObserving: function(element, name, observer, useCapture) {
element = $(element);
useCapture = useCapture || false;
if (name == 'keypress' &&
(navigator.appVersion.match(/Konqueror|Safari|KHTML/)
|| element.detachEvent))
name = 'keydown';
if (element.removeEventListener) {
element.removeEventListener(name, observer, useCapture);
} else if (element.detachEvent) {
try {
element.detachEvent('on' + name, observer);
} catch (e) {}
}
}
This is my simple javascript file where I create and destroy the grid:
[CODE]
var grid;
var ds;
var colModel;
function createGrid(){
var myData = [
[null, null, '250', 'CLIENTE HUM','R INACIO P DA SILVA, 188 JUBURUNA 29123170 - VILA VELHA - ES', '(11) 1111-1111','VENCIMENTO DIA 10','', false],
[null, null, '150', 'CLIENTE DOIS','R INACIO P DA SILVA, 188 JUBURUNA 29123170 - VILA VELHA - ES', '(22) 2222-2222','VENCIMENTO DIA 10','', false],
[null, null, '350', 'CLIENTE TR
I've some problems with the grid when I call the destroy() method, just in IE6. When I call the method, the grid is removed, but if I use a Ext.Resizable component, it remains there in the mask, how can I remove it? Other problem: if I close the brower after the call of the destroy() method, I receive the error that you can see into the error.jpg image attached.
this is the code that fails into prototype.js:
stopObserving: function(element, name, observer, useCapture) {
element = $(element);
useCapture = useCapture || false;
if (name == 'keypress' &&
(navigator.appVersion.match(/Konqueror|Safari|KHTML/)
|| element.detachEvent))
name = 'keydown';
if (element.removeEventListener) {
element.removeEventListener(name, observer, useCapture);
} else if (element.detachEvent) {
try {
element.detachEvent('on' + name, observer);
} catch (e) {}
}
}
This is my simple javascript file where I create and destroy the grid:
[CODE]
var grid;
var ds;
var colModel;
function createGrid(){
var myData = [
[null, null, '250', 'CLIENTE HUM','R INACIO P DA SILVA, 188 JUBURUNA 29123170 - VILA VELHA - ES', '(11) 1111-1111','VENCIMENTO DIA 10','', false],
[null, null, '150', 'CLIENTE DOIS','R INACIO P DA SILVA, 188 JUBURUNA 29123170 - VILA VELHA - ES', '(22) 2222-2222','VENCIMENTO DIA 10','', false],
[null, null, '350', 'CLIENTE TR