Hi, If you mean the object referenced from the argument `row` to your loadTable function, there must be more to it than in the below. In the code below, `row` _will_ be unchanged going into the #each.
Can you create a minimalist, self-contained example?[1] [1] http://proto-scripty.wikidot.com/self-contained-test-page -- T.J. On Sep 4, 8:39 pm, kstubs <kst...@gmail.com> wrote: > I mention line 4 because I am actually stepping through the code and > on line 4, so after entering the #each, my row object goes missing. > I don't understand it at all. There must be something else wrong I > guess. Ugg, this is a real hold up at the moment. > > Karl.. > > On Sep 2, 3:28 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote: > > > > > Hi, > > > > On line 4, if I examine the row object, it simply does not exist. > > > When you're doing that, do you mean `row` or `this`? You're not using > > `row` on line 4. > > > From what you've quoted, I don't see any reason `this` or `row` would > > be different inside the #each call from outside it. You're correctly > > passing `this` to #each to set context, and the iterator closes over > > `row`. > > > Without more context (no pun), can't really see what's wrong... > > > FWIW, > > -- > > T.J. Crowder > > Independent Software Consultant > > tj / crowder software / comwww.crowdersoftware.com > > > On Sep 2, 6:48 am, kstubs <kst...@gmail.com> wrote: > > > > I am losing the context of the row object parameter as in this > > > example: > > > > 1. loadTable: function(row, itt) > > > 2. { > > > 3. this.HEAD.each(function(head, itt2) { > > > 4. var cellNode = this.getCell(itt, itt2); > > > 5. if(cellNode) > > > 6. cellNode.innerHTML = row[head.text]; > > > 7. }, this); > > > 8. } > > > > On line 4, if I examine the row object, it simply does not exist. > > > What am I doing wrong? > > > > Karl.. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.