Forum Moderators: open

Message Too Old, No Replies

How can i respond to this IE textarea cursor position ?

When selecting cursor position it ignores "\r\n" but behaves as if exist.

         

seoul

7:19 am on Feb 21, 2010 (gmt 0)

10+ Year Member



Internet explorer is not working during setting cursor in textarea with unicode character. It consider enter as \r\n, whereas in inputbox it is considered as \n.

So detecting textarea in internet explorer, i determine the cursor postion considering this. So for a input sequece:
1. type s
2. press enter
3. type d
4. press enter
5. type p
6. move cursor after d
7. press m


Now the text saved is: s\r\ndm\r\np and i've to move cursor after m. So i call a function with a value 5.

But it move the cursor just before of p, that is an extra enter after m is included also.

How can solve this problem ? I wish to make a code that'll behave in internet explorer inputbox and textarea equally.

seoul

9:20 am on Feb 27, 2010 (gmt 0)

10+ Year Member



The problem is solved. Not sure how to post an outgoing link so that it'll not be removed by users. I'm saying the solution:

■ Go to google
■ Search for "bangla keyboad layout"
■ From the results follow the google code link on this topic
■ Dowload night_of_the_wolves.js
■ Open and use :-)