At TT
You're viewing old version number 6. - Current version
1 min
Simple chat web app for Toledo Talk
"Chat" may be the incorrect term.
Details:
- web-based app.
- text input field to enter message is located at the top of the site like a microblog and not at the bottom like in traditional chat or message apps.
- post button next to text input field but hitting the return key will also submit message.
- messages are displayed in reverse order, which is youngest to oldest.
- for now, zero formatting in the messages. even raw urls won't be transformed into a clickable link.
- limit message size to 200 to 300 characters.
- display message as a paragraph block.
- the client-side javascript will poll the server every 15 to 30 seconds.
- display the most recent 50 or so messages.
- for each message block, show:
- author name
- message text
- created date
- database table fields
- message_id - auto increment
- message_text
- author_name
- author_id
- created_date
- status
- ip_address
- no joins
- select ... order by id desc limit 50
- server-side script returns only a blob of json that the client-side javascript parses for browser display.
- display the page without the normal ToledoTalk.com header or nav bar.
- the messages will display at the default normal width of Toledo Talk's content.
- responsive design:
- adjust the text input field length accordingly.
- adjust the font size of the messages.
At TT
- JRS / Error.pm
- JRS / StrNumUtils.pm
- minified.js
- chat.html
- message2.pl
- ttchat-messages.sql
From JR's : articles
223 words - 1409 chars
- 1 min read
created on
updated on
- #
source
- versions
Related articles
Simple chat web app for Toledo Talk - Mar 02, 2014
TT-Chat - Mar 03, 2014