1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Katzenellenbogen
    Posts
    51
    Vote Rating
    1
    Moinsen is on a distinguished road

      0  

    Default Jump to the end of a textarea content

    Jump to the end of a textarea content


    Hi,

    i am using a textarea for showing a log output. I put all the text in with setValue. Now it would be nice to jump to the end of this text to be at the newest entry.

    Does anybody know how to do this??

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,982
    Vote Rating
    453
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    One thought would be to use: value = value + newValue?

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Katzenellenbogen
    Posts
    51
    Vote Rating
    1
    Moinsen is on a distinguished road

      0  

    Default


    Hi Scott,

    thanks for reply. The problem is not to figure out what to put in the textarea. I need a way anyhow to go to the end of this text. So something like take the scrollbar button slide it down and place the cursor behind the last character. The cursor is not really necessary. Just to make it clear.

    THX

Thread Participants: 1

Tags for this Thread