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 / com
www.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.

Reply via email to