[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 and get the highest in each , then set the height of the to the highest . The problem is that its looping through and getting the highest in the window.object and ap

[Proto-Scripty] Re: Scope problem with prototype

2010-02-18 Thread huckocs
Although, when running it some Divs overlap, so I'm not sure if the > results are what you are looking for. > > On Feb 15, 8:43 am, huckocs wrote: > > > Hi all, > > > getting stuck with scope, I'm a bit new to javascript so would > > appreciate the help! &

[Proto-Scripty] Re: Scope problem with prototype

2010-02-18 Thread huckocs
thats perfect, thanks so much worked a treat! On Feb 18, 1:26 pm, Guillaume Lepicard wrote: > hi, > what about: > $$(".ddBox").each(function(ddbox){ >   ddbox.setStyle({height: ddbox.select("ol").invoke('getHeight').max() + > "px"); &g