jel.data may have might have 15 non property elements. Do you have a link?
Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Tue, Mar 3, 2009 at 3:20 PM, electronbender <[email protected]>wrote: > > So i replaced that code with this: > var x; > for (x in > jel.data){ > new > Element('option',{'value':jel.data[x].frval}).appendText > (jel.data[x].frname).injectInside(frmel); > } > > And it works... But why does the .each method not work here? > > On Mar 3, 7:15 pm, electronbender <[email protected]> wrote: > > I have this function: > > jel.data.each(function(jop){ > > new Element('option',{'value':jop.frval}).appendText > > (jop.frname).injectInside(frmel); > > > > }) > > > > Works fine in FF, but IE says that jop is undefined, and the error i > > get is that jop.frval is null or not an object. > > However, if i debug using Visual Studio, and add a watch to jel.data > > you can clearly see that there are 15 elements in the array. > > So why is this not working in IE? >
