Responsive Chat Demo

Messages:


Check out the code on GitHub

Features:
– Secure, try <script>alert(‘XSS’);</script> etc
– Message area stays at bottom, unless user scrolls up
– Typing a long message expands the text box
– Shift+enter makes a new line, but enter submits the message
– Page loads new messages automagically through the power of ajax
– Username and password implemented to reserve usernames
– All data is stored in an SQL database, in a users table and a messages table
– Only last 30 messages are loaded on page refresh

Leave a Reply

Your email address will not be published. Required fields are marked *