Chat using "text area" instead of using "text field" ?

Chat using "text area" instead of using "text field" ?

by Judy Hsu -
Number of replies: 1

Hi all:

I assume that the current chat module uses a text field so it could only accept one line, just curious, is it possible to make it a "text area" so that more than one line of text is accepted (when using copying and pasting)? Thanks!

Average of ratings: -
In reply to Judy Hsu

Re: Chat using "text area" instead of using "text field" ?

by lee asson -

hi

i am also wondering whether this is possible.

on my first attempt at replacing the <input type = "text"> with a <textarea> (bearing in mind my php is not great) i have had to add a submit button as <return> puts in a line feed into the text area box rather than sending the message to the screen.

there seems to be problems though if you put in a carriage return and then continue writing text. when submit is then pressed the message is not displayed on the screen.

im going to continue "fiddling" with this today but if anyone can offer any assistance i'd be very grateful.

thanks