Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Positioning the cursor in a textarea

Reply
Thread Tools

Positioning the cursor in a textarea

 
 
Geoff Soper
Guest
Posts: n/a
 
      02-19-2005
Can someone suggest how I can either position the cursor at the beginning of
a specified line in a textarea or select the whole of a specified line in a
textarea?

Thanks,
Geoff


 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      02-19-2005


Geoff Soper wrote:

> Can someone suggest how I can
> select the whole of a specified line in a
> textarea?


Possible for Mozilla browsers:
<http://www.faqts.com/knowledge_base/view.phtml/aid/32415/fid/130>
IE/Win has a text range API that in theory should allow that but my
attempts so far have failed as within a textarea that API gives strange
results as soon as line breaks are involved.

--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to tell if cursor is sqlite.Cursor or psycopg2.Cursor dmaziuk Python 3 01-25-2011 04:52 AM
Declare Cursor error while implementing SCROLL CURSOR invy C Programming 4 12-28-2006 02:35 PM
Positioning a div under cursor/pointer paulsilver Javascript 2 07-25-2006 01:44 PM
cursor positioning Mage Python 4 07-12-2005 12:07 PM
Changing DEFAULT cursor to WAIT cursor in ASP =?Utf-8?B?VG9tYXMgS2VwaWM=?= ASP .Net 1 04-05-2005 07:42 PM



Advertisments