atom feed3 messages in com.googlegroups.jquery-en[jQuery] Dealing with Firefox textare...
FromSent OnAttachments
Patrick HallJun 27, 2006 3:23 am 
Michael GearyJun 27, 2006 8:28 am 
Patrick HallJun 27, 2006 11:54 am 
Subject:[jQuery] Dealing with Firefox textarea bug? (somewhat off topic)
From:Patrick Hall (path@gmail.com)
Date:Jun 27, 2006 11:54:03 am
List:com.googlegroups.jquery-en

Hi Michael,

*hides under desk*

The scrolling workaround in that page is just these two lines of code:

var scrollTop = txtarea.scrollTop; /* change text and set new selection here */ txtarea.scrollTop = scrollTop;

...

The rest of the JavaScript code on that test page corresponds to code you'd have anyway - replacing the selected text, setting the new selection, etc. You don't need to replace your existing code to implement the workaround, just save and restore scrollTop at the right place.

You're absolutely right:

http://ruphus.com/debug/eo2.html

I guess staring at it just made me cross-eyed. Er, cross-brained. Or something.

Thanks buckets!

-Pat