Many thanks Dave!

All sorted now. Put it down to my n00bishness with jQuery.

I've refactored out findpos() and am now using offset() - thanks for
the tip.

+1 internet points to Dave :-)

On Nov 27, 2:21 am, Dave Methvin <[EMAIL PROTECTED]> wrote:
> >  $result.css({
> >       top: (pos.y + $input.offsetHeight) + "px",
>
> Maybe you meant $input[0].offsetHeight instead?
>
> >   var pos = findPos(document.getElementById($input.attr("id")));
>
> I think this is just
>
>    var pos = findPos($input[0]);
>
> Instead of using findPos, you should be able to use .offset() in
> jQuery 1.2.
>
> http://docs.jquery.com/CSS/offset

Reply via email to