G
Gene Wirchenko
Dear HTMLers:
I am working on a test page.
I have some code which adjusts the value of a textarea control
value. It eliminates extraneous spaces and newlines. This is done in
the onblur event. The correct value gets calculated and appears to be
assigned just fine.
The weirdness is that the arrow keys then do not work properly.
Repeated left arrows on some lines (bottom and close?) result in the
cursor going to the left THEN back to the end of the same line.
But it is not my code as I even see the weirdness before the
onblur code is executed.
The textarea is three rows high, and my values are longer than
that.
I have found that, if I add
onfocus="this.select;"
to the textarea control definition, it gets rid of the problem. This
comes at the expense of not being able to click right at a point in
the textarea to start modifying.
Have I found a bug? Is there a way around this?
Sincerely,
Gene Wirchenko
I am working on a test page.
I have some code which adjusts the value of a textarea control
value. It eliminates extraneous spaces and newlines. This is done in
the onblur event. The correct value gets calculated and appears to be
assigned just fine.
The weirdness is that the arrow keys then do not work properly.
Repeated left arrows on some lines (bottom and close?) result in the
cursor going to the left THEN back to the end of the same line.
But it is not my code as I even see the weirdness before the
onblur code is executed.
The textarea is three rows high, and my values are longer than
that.
I have found that, if I add
onfocus="this.select;"
to the textarea control definition, it gets rid of the problem. This
comes at the expense of not being able to click right at a point in
the textarea to start modifying.
Have I found a bug? Is there a way around this?
Sincerely,
Gene Wirchenko