You're viewing old version number 4. - 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.

#toledotalk - #chat - #messaging

From JR's : articles
211 words - 1304 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



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 16, 2024 - 5:58 a.m. EST