KinkyTwits Update - "Characters Remaining" Understands Message Type And HTML Entities

Posted October 7, 2008 at 9:37 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

Just a quick update to KinkyTwits, my ColdFusion, jQuery, and MySQL powered Twitter client. I know that some people have had issues with other twitter clients in that they do not accurately report the number of remaining characters. The problem is that these other clients do not take into account HTML entities that must be escaped. KinkyTwits now takes into account both escaped HTML entities as well as different message types (direct messages allow for a shorter length).

 
 
 
 
 
 
 
 
 
 

This is pretty exciting stuff for me. I've been using KinkyTwits for the past two days and its been a really easy to use.




Reader Comments

Oct 9, 2008 at 8:26 AM // reply »
5 Comments

Pretty cool Ben. I had no clue that the character count worked this way. Sadly, now that my eyes have been opened, I'll have to implement something like this in dlog as well. And I thought I was doing so well :-p


Oct 9, 2008 at 8:45 AM // reply »
11,243 Comments

@Steve,

I found out from some of the Twitter chatter. I had no idea either (although I saw that some of my posts were getting truncated for seemingly no reason). If you want to look at any of my code, just let me know.


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
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 23, 2013 at 9:55 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Dan, According to the CF Admin, I'm running Java "1.6.0_45". As far as the DB column, in the database it's an INT. I'll see if I can dig into what CF sees it as. @WebManWalking, But h ... read »
May 23, 2013 at 9:49 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Ben, I think the problem is that we're used to loose typing in ColdFusion, like JavaScript. If a value is a number but it's needed in an expression to be a string, noooo problem. I've encountered ... read »
May 23, 2013 at 9:47 AM
ColdFusion QueryAppend( qOne, qTwo )
You rock! Thank you, thank you, thank you!!! ... read »
May 23, 2013 at 5:19 AM
Ask Ben: Print Part Of A Web Page With jQuery
How to print also the background color of table cells and table lines ... read »
May 23, 2013 at 3:55 AM
Javascript Array Methods: Unshift(), Shift(), Push(), And Pop()
very interesting and helpful too. ... read »
May 22, 2013 at 5:35 PM
Script Tags, jQuery, And Html(), Text() And Contents()
This is still an issue 2 years later. jQuery is supposed to remediate these cross browser issues, no? I have been unable to find any statement from the jQuery team calling this behavior "by de ... read »
May 22, 2013 at 12:44 PM
Ask Ben: Query Loop Inside CFScript Tags
In cf10, if you call a function that has: local.result = {}; local.result.msg = ""; local.svc = new query(); local.svc.setSQL("SELECT * FROM..."); local.obj = local.svc.exe ... read »
May 22, 2013 at 12:29 PM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Ben: What version of Java are you using? Also, did you test users.id to see what Java reports as the data type? I wonder if it's not a Java primitive data type, but getting returned as something ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools