Vipul Bhasin schrieb:
Okay, Here is an example (the code is too long to attach; I'll explain the concept)

I have 2 textAreas inside a QxWindow, called outputArea and inputArea .. The concept is that when a user enters something in the inputTextArea and presses enter, the text is displayed in the outputArea. Once the outputArea has enough text, a scrollbar appears which can be used to see the overflow text. So now when the user enters something in the inputArea, it is appended to the outputArea text ... but to see this newly appended text, the user has to scroll down (using the scrollbar). what I wanted was that the newly entered text be visible and if the user wants to see the previously entered text, he should scroll up.

Ok, it seems slowly I understand what you want:

Scroll to the bottom of the textarea. Mhh, should not be to hard to realize such a thing with pure dom methods:

outputArea.setScrollTop(1e7);

and execute this always after a line was added.

Sebastian


Vipul.



Sebastian Werner wrote:

Vipul Bhasin schrieb:

Sorry, that was not what I meant. I meant to say that once the focus moves off the TextArea, the scrollbar automatically returns to the top and one has to scroll down to see the rest of the text. However, what I want is that the scrollbar remain at the bottom and the user can scroll up to see the previous text.


I have problems to understand what exactly do you mean. A example would be great.

Sebastian



Is that possible ?

Vipul.

Sebastian Werner wrote:

[EMAIL PROTECTED] schrieb:

Hi,

Another question I had was about TextAreas;once I display some text that overflows (and vertical scrollbars are shown), after the textarea loses focus, only the top few lines of the text in the textare are displayed. Is there a way to change that and display the last few lines ?

Also, the command textarea.setText("") doesn't seem to clear out the textArea if the text in the area has more than 1 line of text. I tried to manipulate the DOm object directly but even that doesn't seem to clear all of the textarea (it always leaves out the first line). If this helps, I am clearing the textArea when the user hits 'enter' (captured)



Do you use the HEAD or renderer?

Please send an example for your bug report to give us a change to reproduce the problem here.

Thanks,

Sebastian



thanks,
Vipul.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to