Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-16-2011, 07:42 PM   PM User | #1
newBeginnings
New to the CF scene

 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
newBeginnings is an unknown quantity at this point
Arrow Adding Chat Smilies & Flooding Control

Hi all, I'm was recently following this tutorial on creating your own chat box using ajax and javascript. I decided to take it a bit further and add onto it a little but, currently I am stuck on how I would go about adding flood control and how I would convert text such as "=)" into an actual smiley icon such as... I tried adding smilies by using

happy = new Image();
happy.src = "../images/smiley2.png";
var text = $('#chatText').val();
if(text.toLowerCase()=="happy"){text==happy}

but, that didn't work. Any help would be greatly appreciated.
newBeginnings is offline   Reply With Quote
Reply

Bookmarks

Tags
ajax, chat, flooding control, javascript, smilies

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:14 AM.


Advertisement
Log in to turn off these ads.