View Full Version : [OPEN] [1.1.1] elements.length is undefined in IE6/7
i have done a possible bug discovery see this thread
http://extjs.com/forum/showthread.php?t=14035
Technical details:
Browser: Internet Explorer 6.0 / 7.0
OS: Independent but it was test on Windows XP /Vista
bug explanation:
When i submit a dynamic form inside a div (BasicDialogs) in FF is OK but in IE give a error that elements.length doesn't exist and element is null or isn't a object.
i have a 3rd form in tha main page not in any BasicDialog that submit perfectly.
i suspect that is related with the fact that i have 2 dialogs that i don't destroy because i need to keep in memory and that IE (like i was read before) have iusses with dynamic creation of forms.
the problem resides in file ext-base.js
and debugging with Visual Studio 2k5 y found that the object _94 doesn't have a property named elements ...
mystix
2 Oct 2007, 8:01 AM
insufficient details.
pls see 8887.
ok i will to give a example because my js file has +1000 lines of source code and has code thats irrelevant to this possible bug.
This is the main form (not inside in a BasicDialog)
[PHP]
form = new Ext.form.Form({
labelAlign: 'right',
labelWidth: 75,
id:'form_newfalla',
url: 'submit_data.asp',
baseParams:{
id: '1'
}
});
Ext.form.VTypes["timeVal"] = /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/i;
Ext.form.VTypes["timeMask"] = /[\d:]/i;
Ext.form.VTypes["timeText"] = 'Hora no v
mystix
2 Oct 2007, 8:32 AM
you'll need to do a little work. the thread explicitly mentions a simplified test case.
all complex code containing bugs can be simplified to simple test cases.
p.s. your image isn't showing...
[edit]
now the image is showing.
as mentioned in the thread i pointed you to, you'll also need to use ext-all-debug.js instead of ext-all.js when debugging.
ok i'll work in a simplified test case but this will take some time
mystix
2 Oct 2007, 8:51 AM
you should only need to create 1 dynamic Form (which submits stuff to your server) inside 1 BasicDialog.
try that with ext-all-debug.js.
[edit]
...
as mentioned in the thread i pointed you to, you'll also need to use ext-all-debug.js instead of ext-all.js when debugging.
i've tried both files but the behaivor is the same ... i found the line that have the error via the VS.NET 2005 in th Thread that i linked in the firts post i have posted the fragment of the code that has the error (it's a for statment)
[edit]
from the thread that i posted before
This is the line that report the error in etx-base.js
for(var i=0;i<_94.elements.length;i++)
mystix
2 Oct 2007, 9:51 AM
you left out mentioning that the error was reported in ext-base.js.
using the official download, locate the \source\adapter directory and use the ext-base.js file from that folder for debugging instead.
you left out mentioning that the error was reported in ext-base.js.
...
you are wrong mystix, i mentioned in the very first post ... :D:D;)
...
the problem resides in file ext-base.js
and debugging with Visual Studio 2k5 y found that the object _94 doesn't have a property named elements ...
mystix
2 Oct 2007, 10:33 AM
ah ok. my mistake... :">
anyway, try your test with ext-base.js from \source\adapter instead and we'll carry on from there.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.