You're viewing old version number 11. - Current version

1 min

Simple chat web app for Toledo Talk

Update Feb 28, 2014: created and tested initially within the testcode area at soupmode.com on Feb 25-27, and then merged into ToledoTalk.com code base on Feb 27-28. Still need to correct double post issue on my HP tablet that uses WebOS, and need to correct the IEv8 issue of nothing posted when hitting the return key.

"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.com

  • JRS / Error.pm
  • JRS / StrNumUtils.pm
  • / minified.js
  • chat.html
  • message2.pl
  • ttchat-messages.sql
  • Parula / Chat.pm
  • tmpl / chat.tmpl

#toledotalk - #chat - #messaging

From JR's : articles
285 words - 1777 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: Dec 22, 2024 - 12:29 a.m. EST