G
Gene Wirchenko
Dear JavaScripters:
I have some fine points that I would like to know how to do in
JavaScript. I do not know that they are even possible. Having them
would make data entry much easier.
1) Position to a particular point in a control's value. For
example, if entering a date, it could be much more user-friendly if,
when the control gets focus, the cursor were positioned just before
the days as in:
201112@29
where the at-sign represents the cursor. (In my app-to-be, the date
is usually in the current month, but not always.)
2) I want to be able to programmatically select part of an input
control value. e.g. Click on some part of the sentence below and
have that word and only that word selected
The quick, brown fox jumps over the lazy dog.
^
The quick, brown fox jumps over the lazy dog.
===== selected
or have the day of a date selected but not the rest.
Sincerely,
Gene Wirchenko
I have some fine points that I would like to know how to do in
JavaScript. I do not know that they are even possible. Having them
would make data entry much easier.
1) Position to a particular point in a control's value. For
example, if entering a date, it could be much more user-friendly if,
when the control gets focus, the cursor were positioned just before
the days as in:
201112@29
where the at-sign represents the cursor. (In my app-to-be, the date
is usually in the current month, but not always.)
2) I want to be able to programmatically select part of an input
control value. e.g. Click on some part of the sentence below and
have that word and only that word selected
The quick, brown fox jumps over the lazy dog.
^
The quick, brown fox jumps over the lazy dog.
===== selected
or have the day of a date selected but not the rest.
Sincerely,
Gene Wirchenko