Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)


"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Sunday February 13, 2005
08:17 PM

JavaScript selection stuff

[ #23180 ]
Dear Log,

Couldn't get to sleep last night, so I killed an hour or so by writing the code in the Unicode sliderule, mostly the functions _insert_a_char and ev_backspace, that deals with the current cursor position (or selected area) in the textbox. I use the selectionStart and selectionEnd and setSelectionRange methods, which don't seem to work under MSIE. So under MSIE, we always just pretend the cursor is at the end of the textarea.

Still couldn't sleep, so I listened to the Carse lecture. Mildly interesting.