Re: [Proto-Scripty] Scope problem with prototype

2010-02-16 Thread John Mayer
If you only want the child elements for a particular element, use this: div id=whatever ol li a href=#/a /li /ol /div Use this: $$('#whatever ol') .then, just use whatever enumerable you need to cycle through them. On the flip-side, you

[Proto-Scripty] Scope problem with prototype

2010-02-15 Thread huckocs
Hi all, getting stuck with scope, I'm a bit new to javascript so would appreciate the help! I'm attempting to loop through each div class=ddBox and get the highest ol in each div class=ddBox, then set the height of the div class=ddBox to the highest ol. The problem is that its looping through

Re: [Proto-Scripty] Scope problem with prototype

2010-02-15 Thread Michael T. Wescoat
Hi, At first blush, it appears that the use of $$() might be problematic. I was expecting to see something with Element.select(), which is described this way in prototype-160-api.pdf: This method is very similar to $$() but can be used within the context of one element, rather than the