On 12 June 2011 12:51, Greg Thomas Greg@thethomashome.co.uk wrote:
If you're looking at AJAX, I'd suggest investing some time looking at a JavaScript framework. I'd suggest jQuery, others are available.
Picking a framework was on my "todo" list, and to be honest it pretty much just had jQuery on it even though it's not something I've used much.
For comparison, the jQuery equivalent of your function would be something like [...]
Thanks, that's a great starter into jQuery for me, and it worked perfectly for me: http://www.more-solutions.co.uk/alug.html
Also, your "test" link adds a scroll bar that allows me to scroll up and down one pixel (FF 3.6.17); That's because the link remains selected which adds to the height (until you click elsewhere to unselect it). I'd suggest adding this.blur() before calling autoHeight on the link to prevent that and confusing you (it did me for a while, anyway).
Thanks for the tip. The link shouldn't have been there (and its gone now) but the diagnostics are still useful.