adema_
04-27-2003, 05:41 AM
i have a textarea and want to add a text at the cursor's position.
is there a way to archieve this? it should work on netscape and IE.
is there a way to archieve this? it should work on netscape and IE.
|
Click to See Complete Forum and Search --> : get the cursor's position in textarea adema_ 04-27-2003, 05:41 AM i have a textarea and want to add a text at the cursor's position. is there a way to archieve this? it should work on netscape and IE. khalidali63 04-27-2003, 08:10 AM You should run a search in this forums threads,Dave had a link posted to this some time ago. :D adema_ 04-27-2003, 11:29 AM sure i saw that, but it doesn't work with Netscape7.0. There is a problem with the selection and the the text is always added in the end. Charles 04-27-2003, 01:57 PM It will also fail for all of the MSIE users who do not use JavaScript. Consider this: 93% of users use MSIE (http://www.thecounter.com/stats/2003/March/browser.php) but only 90% of users use JavaScript (http://www.thecounter.com/stats/2003/March/javas.php) (and fewer than that recognize the W3C DOM). It follows then that if you are making a page that's JavaScript dependent then you are already cutting yourself off from more people than you would be if you made your page MSIE dependent so don't worry about it. But that if your page works as well with as without JavaScript then the Netscape users will be happy as will the JavaScript free MSIE users, so don't worry about it. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |