Click to See Complete Forum and Search --> : Cursor's position in a Text-box


FlorDelgado
11-27-2002, 10:23 AM
Can somebody help me? I want to know if it is possible to control the position of the cursor in a text-box. For example: when commanding focus to the object, can I to position the cursor in a certain place (position) in the text?. It is possible to know the cursor's position?

It has somebody some function or know the procedure?

Thanks
Flor Delgado

Rick Bull
11-28-2002, 05:41 AM
I think (in most cases, e.g. for an insert smilies thing in a forum) you should chage this bit:

textEl.value = text;

to:

textEl.value += text;

otherwise people without IE will have all their text replaced.

FlorDelgado
11-28-2002, 11:20 AM
I do not understand, does not exist something similar that I can use in Netscape? . What I want to do is simple, I only want to display in the screen the position of the cursor when the user moves it in the text-box. Somebody has an idea?

Thanks

Flor