CodeChat Beta 1.0 ColdFusion And AJAX Code Base

Posted March 19, 2007 at 2:44 PM by Ben Nadel

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.




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 »
10,640 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 »
10,640 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 »
10,640 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 »
10,640 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 »
10,640 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 »
10,640 Comments

@Sarah,

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


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
InVision App - Prototyping Made Beautiful With Prototyping Tools Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Feb 10, 2012 at 7:21 PM
jQuery AJAX Strips Script Tags And Inserts Them After Parent-Most Elements
Update! Instead of $(eval(options.insertAfter)).after(data['insertData']); I now use: var ajaxNode = document.createElement('span'); var parent = $(eval(options.insertAfter))[0].parentNode; ... read »
Feb 10, 2012 at 6:18 PM
jQuery AJAX Strips Script Tags And Inserts Them After Parent-Most Elements
encountered this same, what I consider, jQuery bug last week. I'm building a site in which I load some content via AJAX. This content contains Linkedin share button placeholders which Linkedin API ne ... read »
Feb 10, 2012 at 11:30 AM
Cross-Origin Resource Sharing (CORS) AJAX Requests Between jQuery And Node.js
After you understand the concepts here, this is an awesome cheatsheet for enabling CORS in just about anything http://enable-cors.org/ ... read »
JM
Feb 10, 2012 at 9:10 AM
My Safari Browser SQLite Database Hello World Example
@Amy, Here is a very good tutorial on how to use JOIN: http://www.sqltutorial.org/sqljoin-innerjoin.aspx ... read »
Feb 10, 2012 at 4:42 AM
Building A Twitter-Inspired RESTful API Architecture In ColdFusion
This is great, very useful Ben. I spotted a small typo in the api.cgm listing: <cfthrow type="Unauthroized" /> Cheers Stefan ... read »
Feb 9, 2012 at 10:35 PM
CFDirectory Filtering Uses Pipe Character For Multiple Filters (Thanks Steve Withington)
I was wondering if there would be a filter you could apply so that you got everything but what you included in the filter. As in show me all docs that are not a .pdf. ... read »
Feb 9, 2012 at 10:29 PM
Learning ColdFusion 9: Application-Specific Data Sources
@Ben, No offence, but if people were really wanting advanced features they would be using a platform like ASP.NET MVC. CFML is so structurally compromised as a tag-based scripting language that ... read »
Feb 9, 2012 at 10:03 PM
Subversion - Cleanup Failed To Process The Following Paths
@Leviaguirre, do you still have problems with this? ... read »