How to find the position of the character.

Last post 11-02-2005, 7:21 PM by gurpreet. 0 replies.
Sort Posts: Previous Next
  •  11-02-2005, 7:21 PM 12189

    How to find the position of the character.

    i created a text area in cute editor ,

    <textarea style="width: 100px; height: 100px" rows=5 wrap=hard cols=1></textarea> 

    now when I start entering text in that text area is there any way
    that I can get the position or point of the particular character at which the text is wrapped, 
    position can be the x and y co-ordinates.

    Or can I do it by using some other control , other then text area.

    Actually i want to make a user control in a cute editor by using text area or some other suitable control,
    which  will be of fixed size, lets say of "width: 100px; height: 100px" ,
    now when the user enters text in that text area, we need to figure out how many characters user can enter in it.

    no matter what the size or style or font of the text is, we just have to validate the maximum characters,
    that can be entered it that text area.

    its very urgent for us, please give your suggestions.

    Thanks,
    Gurpreet.

     
View as RSS news feed in XML