CodeChat Beta 1.0 ColdFusion And AJAX Code Base

Posted March 19, 2007 at 2:44 PM

Tags: ColdFusion

Last week, I gave my first ever presentation at the New York ColdFusion User Group. It was waaay too long and tried to cover way too much information, but it was a lot of fun, and a good way to get my feet wet. I hope that they will let me present again as I had a great time. Next time, I am sure I will be much more organized and cover a smaller topic.

Anyway, the topic I covered last week was a stand-alone version of my code-chat beta. It is fixes many of the bugs that exist in my currently live version. If anyone is interested in looking at the code base, download it here:

code_chat_2007_03_19.rar

Why would you be interested? Here are things that this mini-app uses:

  • Cool CSS
  • Advanced Javascript / AJAX / JSON
  • Application.cfc
  • Java method invocation
  • Java object instantiation
  • ColdFusion components and CFC caching
  • File download prompt

This was an AJAX learning experience for me, so please, do not take any of this as best practices.

Post Comment  |  Ask Ben  |  Other Searches  |  Print Page





Reader Comments

Jun 14, 2009 at 8:53 PM // reply »
2 Comments

Ben. I love the simple Chat App. What would you recommend if I wished to keep all the history in the Chat window? When I close out the window I deletes history. If is there another app that you would recommend?


Jun 15, 2009 at 9:11 AM // reply »
7,572 Comments

@Chris,

You'd have to store the chat history to a database of some sort.


Oct 8, 2009 at 8:05 AM // reply »
1 Comments

hi Ben, this simple chat app is wonderful but i can not make it work in Internet Explorer 8 have any suggestions?


Oct 31, 2009 at 5:41 PM // reply »
7,572 Comments

@Will,

You're gonna think I'm crazy, but I have not yet tried IE8 :) I've been so hesitant to install it cause I don't want to lose IE7 for testing.

I really need to get that IE Collection app downloaded so I can do proper cross-IE testing.


Jan 18, 2010 at 5:37 PM // reply »
1 Comments

Very nice, I too would like to use this as a base for a chat I am working on, but the IE 8 issue is problem ;-(


Jan 24, 2010 at 10:49 PM // reply »
7,572 Comments

@Brian,

This code is really old, way before IE8 was even released. It would be fun to try doing something like this again, especially now that I know much more about jQuery.


Feb 6, 2010 at 11:14 AM // reply »
3 Comments

That would be awesome Ben! Please do something like that! I totally Love reading/playing around with your applications! Please come up with a Jquery version, the codechat version is not working so well :D Thanks, might want to look at http://omegle.com


Feb 6, 2010 at 11:21 AM // reply »
7,572 Comments

@Sarah,

Yeah, I definitely want to make an updated version of this, to be sure.


Feb 6, 2010 at 1:27 PM // reply »
3 Comments

Awesome! I cant wait for it! Just wondering, how would doing this application in Javascript(Jquery) compare with doing it in Flex! Thanks for your immediate response! :) Looking forward to the Super cool Chat App! Thanks again :) :)


Feb 6, 2010 at 4:47 PM // reply »
7,572 Comments

@Sarah,

I have only played around with FLEX like once or twice, so I am not the best authority. My guess, however, would be that the biggest difference would be in the data communications available. jQuery / Javascript typically communicates with the server via AJAX calls. FLEX, on the other hand, can take advantage of BlazeDS (is that what it's called?) which can keep use a more efficient messanging system.

However, jQuery / Javascript can also do this by using a Javascript-FLEX bridge in which the Javascript talks to a 1x1 FLEX application on the page; this FLEX app, then in turn, talks to the server using Blaze.

But, I know very little about that stuff.


Feb 7, 2010 at 4:12 AM // reply »
3 Comments

Alright! Thank you so much for your prompt and interesting reply. When do you think you might be able to finish the Jquery version of the chat application? I'm really looking forward! Thanks so much btw :D


Feb 7, 2010 at 1:24 PM // reply »
7,572 Comments

@Sarah,

Maybe I'll work on it next weekend. I have a little project lined up for my evenings this week.


Post Comment  |  Ask Ben

Recent Blog Comments
Mar 20, 2010 at 9:00 AM
Building A Fixed-Position Bottom Menu Bar (ala FaceBook)
I would like to say thx for an easy way to create a bottom bar. I do have a ?. Is it possible to center the bar if i want to resize it to ex 85%. Regards Offenbach ... read »
Mar 19, 2010 at 7:26 PM
MySQL 3/4 - com.mysql.jdbc.Driver And allowMultiQueries=true
Thank you very much for this post. Adding allowMultiQueries="true" in context.xml didn't help until I added it to url as allowMultiQueries=true Good idea is to use prepared statements and it will he ... read »
Jim
Mar 19, 2010 at 4:49 PM
Nobody Puts Baby In The Corner!
Wow. This is like suddenly finding a support group for your secret shame. I'm not alone! I always liked this movie, even though it is extremely cheesy. I just wish Jennifer Grey hadn't gotten the ... read »
Mar 19, 2010 at 4:47 PM
Application.cfc OnRequest() Method Affects OnError() Arguments
@Jason and @Ben, I've been doing some CF9 refactoring on our systems and noticed an odd occurrence with onError as well. Found a way to work around my problem, but what I saw was... Background: Our ... read »
Jim
Mar 19, 2010 at 4:44 PM
Shoot 'Em Up Starring Clive Owen And Paul Giamatti
I actually enjoyed this movie quite a lot. It was different, certainly, but I think they were going for more of a Quentin Tarentino-"wow, that was weird"-vibe than an actual spoof. Once I realize ... read »
Mar 19, 2010 at 4:34 PM
An Intensive Exploration Of jQuery With Ben Nadel (Video Presentation)
Hey I guess the video is down. Is there anyway you can upload to youtube or vimeo or some other service? Greatly appreciated. ... read »
Mar 19, 2010 at 4:24 PM
ColdFusion CFPOP - My First Look
@Ben Thanks for the follow up! The root of the problem had to do with being able to trace bounced emails to specific records in a DB table. Let's say you run an email campaign and you get 1,000 bou ... read »
Mar 19, 2010 at 4:15 PM
SQL COUNT( NULLIF( .. ) ) Is Totally Awesome
Thank you Ben and Tony! Either of these work for the summary report I am working on and the info is much appreciated! I think I like Tony's a little better because I won't have to educate every ... read »