Yang
Check out the chat rooms on Levis Europe (www.eu.levi.com) and 21st Century
Girls (www.21stcenturygirls.com). These are both servlet based and
demonstrate some of the features you are looking for:
1) I'm not sure what you are asking
2) The text area consists of HTML tables. The Levi room uses bookmarks that
are calculated by message number and from a circular array of messages so
that the browser diplays the last x messages and scrolls to the last one
viewed.
The 21st Century Girls chat is more elegant. Again using tables and a
circular array, the messages are displayed most recent at the top. This way
there is no reason to worry about scrolling or bookmarks
3) Use a meta-refresh. View the headers in the HTML code on either of the
above chat rooms.
Hope this has been of some help
Lee
Lee Coomber
[ >Lateral *~; ] - [ [EMAIL PROTECTED] ] - [ http://www.lateral.net/ ]
At 20:14 11/06/99 +0800, you wrote:
>Hi,
>
>Sorry to trouble u again.
>
>I am studying the servlets. I try to design a small chat room.
>Now, I meet three problems.
>
>(1) focus on the input control.
>(2) the scroll of the textarea.
>(3) How to refresh the display of opposite side.
>
>you can visit and try through:
>http://155.69.92.31:8080/chat
>
>
>thanks very much!
>
>yang
>
>
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html