jdisla
6 Aug 2007, 6:52 PM
Hi guys!
I'm getting this error quite often. Apparently is originated by recursively firing of an event by it self or in an infinite loop.
This
init : function(){
//Builds the containing layer
Ext.DomHelper.append(document.body, {
id : 'user_form_div',
tag : 'div'
});
Ext.DomHelper.append(document.body, {
id : 'edit_user_form_div',
tag : 'div',
innerHTML: 'esodigoyo'
});
user_form_layout = new Ext.LayoutDialog('user_form_div',{
modal : true,
width : 600,
height : 450,
shadow : true,
minWidth : 500,
minHeight : 350,
autoTabs : true,
proxyDrag : true,
center : {
tabPosition : 'top',
alwaysShowTabs : true,
titlebar: true,
autoScroll:true,
resizeTabs: true,
minTabWidth: 50,
preferredTabWidth: 150
}
});
var l_layout = user_form_layout.getLayout();
l_layout.beginUpdate();alert('sigue');
var sp = new Ext.ContentPanel('edit_user_form_div',{
title: 'New User',
fitToFrame: true
});
l_layout.add('center', sp);
layout.getRegion("center").showPanel(sp);
l_layout.endUpdate();
},
The red line attempts to add the CP to l_layout. I tracked down this thread to ext-all-debug.js line 25322. In fact the error does not happen here or anywhere. But if you follow from here will notice that the event triggers itself over and over.
A temporary workaround for this was hacking ext-all.js. Placing a counter to drop the loop.
But it in no way means that the problem is solved. Because it is popping in too many other situations really setting my work back.
Is there a patch available?.
Thank you Ext.Traordinary.
I'm getting this error quite often. Apparently is originated by recursively firing of an event by it self or in an infinite loop.
This
init : function(){
//Builds the containing layer
Ext.DomHelper.append(document.body, {
id : 'user_form_div',
tag : 'div'
});
Ext.DomHelper.append(document.body, {
id : 'edit_user_form_div',
tag : 'div',
innerHTML: 'esodigoyo'
});
user_form_layout = new Ext.LayoutDialog('user_form_div',{
modal : true,
width : 600,
height : 450,
shadow : true,
minWidth : 500,
minHeight : 350,
autoTabs : true,
proxyDrag : true,
center : {
tabPosition : 'top',
alwaysShowTabs : true,
titlebar: true,
autoScroll:true,
resizeTabs: true,
minTabWidth: 50,
preferredTabWidth: 150
}
});
var l_layout = user_form_layout.getLayout();
l_layout.beginUpdate();alert('sigue');
var sp = new Ext.ContentPanel('edit_user_form_div',{
title: 'New User',
fitToFrame: true
});
l_layout.add('center', sp);
layout.getRegion("center").showPanel(sp);
l_layout.endUpdate();
},
The red line attempts to add the CP to l_layout. I tracked down this thread to ext-all-debug.js line 25322. In fact the error does not happen here or anywhere. But if you follow from here will notice that the event triggers itself over and over.
A temporary workaround for this was hacking ext-all.js. Placing a counter to drop the loop.
But it in no way means that the problem is solved. Because it is popping in too many other situations really setting my work back.
Is there a patch available?.
Thank you Ext.Traordinary.