[jQuery] Re: not defined error using instance variable in each callback

2008-10-06 Thread MorningZ
i would take a guess that you are missing that "this" points to two different things inside and outside the ".each" loop which makes sense because you have "this" on the outside, and then loop against "this.children", so inside the loop "this" actually is the "nth child of this" see if this.ch

[jQuery] Re: not defined error using instance variable in each callback

2008-10-06 Thread Michael Geary
That's right, the mistaken use of "this" is the problem - one of them anyway - but that solution won't work (what is the "parent" property of a DOM element?). Another problem is the misuse of "push" - it's a method, not a property you can store into. (You *can* store into the "push" property - as

[jQuery] Re: not defined error using instance variable in each callback

2008-10-06 Thread marty
Hi Mike, You're right, I want to be able to use this.rowTextArray later on. You're code suggestion works great! Thanks so much for the help!! Regards, Marty On Oct 6, 1:24 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > That's right, the mistaken use of "this" is the problem - one of them

[jQuery] Re: not defined error using instance variable in each callback

2008-10-06 Thread marty
Thanks very much for the reply! That was a big help! I was missing the fact that "this" inside the loop is not the same as "this" outside the loop. Your suggestion really helped! Regards, Marty On Oct 6, 12:59 pm, MorningZ <[EMAIL PROTECTED]> wrote: > i would take a guess that you are missing