AW: [Javascript] remember position in textarea

Michael Borchers borchers at tridem.de
Thu Oct 27 05:40:53 CDT 2005


 

-----Ursprüngliche Nachricht-----
Von: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]Im Auftrag von SkyScanner
Gesendet: Donnerstag, 27. Oktober 2005 12:07
An: [JavaScript List]
Betreff: Re: [Javascript] remember position in textarea


As your cursor moves through the text area, keep a variable that contains all the text so far. Then when you want to add text, add it to this variable (variable = front_variable + new + end_variable), then re-fill the text area from the variable.
 
Tim in Ireland.

----- Original Message ----- 
From: Michael  <mailto:borchers at tridem.de> Borchers 
To: [JavaScript List] <mailto:javascript at LaTech.edu>  
Sent: Thursday, October 27, 2005 10:55 AM
Subject: [Javascript] remember position in textarea

i have a textarea and besides some links that will post data into the textarea.
at the moment the links post the data at the end of the textarea but i would
like it to parse the data at the place where the cursor stopped in the textarea.
 
possible?!



  _____  




is there a modern DOM function for this, something like TextRange()?!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20051027/c2e39561/attachment.htm>


More information about the Javascript mailing list