I have tried : this._TextArea.setScrollTop(this._TextArea.getScrollHeight());
in every I update my textarea.
this is my code :
reqOpen.addEventListener("completed", function(e)
{
var isi = this._TextArea.getValue();
isi = isi + "\n" +mySentence+"\n"+ e.getData().getContent();
this._TextArea.setValue(isi);
this._TextArea.setScrollTop(this._TextArea.getScrollHeight());
}, this);
it doesn't work. any other step ?
----- Original Message ----
From: thron7 <[EMAIL PROTECTED]>
To: qooxdoo Development <[email protected]>
Sent: Wednesday, July 16, 2008 2:32:57 AM
Subject: Re: [qooxdoo-devel] Memo autoscroll and chat application
jhonny thio wrote:
> I have tried <textarea>.setOverflow("auto"), but this command doesn't
> work.
>
> Maybe I must tell again about my problem...
> Every I pressed enter in my textfield, the textfield.value will move
> to textarea.
> If the textarea.value has bigger than the textarea size, will be shown
> a scroll bar.
> My problem is although there is a scroll bar, but the focus of the
> textarea still in a first line..
> so if I want read the newest line, I must scroll manual the focus to
> the the most bottom line.
>
> so how I can make my textarea always focus to the new line?
Ah, now I'm getting at it ... try to set scrollTop = scrollHeight with
every update on your TextArea.
T.
>
> ----- Original Message ----
> From: Petr Kobalíček <[EMAIL PROTECTED]>
> To: qooxdoo Development <[email protected]>
> Sent: Tuesday, July 15, 2008 12:09:58 PM
> Subject: Re: [qooxdoo-devel] Memo autoscroll and chat application
>
> Hi,
>
> I thing that thron7 is right, setting liveUpdate property to true can
> help you with this
>
> <textfield>.setLiveUpdate(true);
>
> Consider using HtmlEmbed instead of text area, text area can display
> only text ;-)
>
> 2008/7/15 thron7 <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>:
>
> jhonny thio wrote:
> > Hi, i have some question...
> >
> > 1. I want to build a chat application. So I have a window with
> > textarea and textfield.
> > But i have some problem. Every i add a new line to my text area,
> > the text area doesn't auto scroll..
> > How to make textarea autoscroll?
>
> Try <textarea>.setOverflow("auto").
>
> > The other problem is i can't clear the text in the textfield
> (I use
> > command textfield.setValue("")). So every
> > I press enter, I want to clear the textfield and move the
> value to
> > the textarea. But the textfield can't
> > be cleared. Hot to clear the textfield value?
>
> See
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.form.TextField~value
> <http://demo.qooxdoo.org/current/apiviewer/#qx.ui.form.TextField%7Evalue>.
> You might want to toggle "liveUpdate" when you encounter an Enter key
> and send a synthetic key event to force the change. Or you use
> .getInputElement() and manipulate the input element directly.
>
> >
> > 2. Are there any qooxdoo chat application in the internet ?
>
> None that I'm aware of!?
>
> Thomas
>
> >
> > Thank you very much
> >
> >
> >
> ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> > Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> > Grand prize is a trip for two to an Open Source event anywhere
> in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> <mailto:[email protected]>
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel