todd sharp
Member since Dec 11, 2008
- Profile: /members/916-todd-sharp.htm
- URL: http://cfsilence.com
- Comments: 48
Recent Blog Comments By todd sharp
-
Posting JSON Data To The ColdFusion Server Using jQuery
Posted on Jun 7, 2011 at 12:54 PM
@WebManWalking, Sure, but what's stopping you from passing the serialized JSON string as a form variable?... read more »
-
Posting JSON Data To The ColdFusion Server Using jQuery
Posted on Jun 7, 2011 at 12:11 PM
@Sam - kick rocks dude. Your tone and comments are uncalled for and quite frankly you're making yourself look like an ass. @Ben: Interesting post. Can you elaborate on how you might use this over just passing the data as a form var? Or was it more of just 'cool, it works...' which is totally co... read more »
-
I Finally Understand The Finally Part Of A Try/Catch Control Statement
Posted on Mar 23, 2011 at 11:24 AM
+1 on Julian's comments. A try/finally without a catch is definitely going to break in IE less then 8. In fact, I had to file a bug against jQuery 1.5 because of that (it's fixed in 1.5.1).... read more »
-
Thoroughly Document Your Use Of ColdFusion's CFHTMLHead Tag
Posted on Sep 29, 2009 at 10:32 AM
I love cfhtmlhead. I use it religiously in my Model-Glue apps. To me it makes more sense to keep my JavaScript logic in my view instead of mucking about trying to fit it all in my massive dspTemplate.cfm file and playing the viewstate.setValue('needSomeScript', true) game. Different strokes for d... read more »
-
Ask Ben: Getting The Domain Name From The Referer URL
Posted on Sep 8, 2009 at 8:55 AM
Jody: Does it need to be done on the server side? It would be really easy with jQuery on the client side. $('a').each(function(){alert($(this).attr('href'))});... read more »
-
Ask Ben: Getting The Domain Name From The Referer URL
Posted on Aug 26, 2009 at 11:30 AM
I think this UDF does this, and more... http://cflib.org/udf/parseUrl For the record, I'm a fan of java.net.URL too!... read more »
-
Does Order Of Twitter API Parameters Make A Difference?
Posted on Jan 30, 2009 at 1:37 PM
Right, but, my skewed thinking was that somehow on Twitter's side of the API they are taking the arguments that you are passing in and creating a hash of that argument structure as a key to identify your requests. My thought was that they use that key to throttle you if you send too many requests w... read more »
-
Does Order Of Twitter API Parameters Make A Difference?
Posted on Jan 30, 2009 at 1:15 PM
DAMN! I got all excited thinking that was correct (that A != B but A=C), until I saw my copy paste error. Here is the correct code: <cfset a = createObject("java", "java.util.HashMap") /> <cfset a.put("keyOne", "valOne") /> <cfset a.put("keyTwo", "valTwo") /> <cfset b = crea... read more »
-
Does Order Of Twitter API Parameters Make A Difference?
Posted on Jan 30, 2009 at 1:10 PM
Check this: <cfset a = createObject("java", "java.util.HashMap") /> <cfset a.put("keyOne", "valOne") /> <cfset a.put("keyTwo", "valTwo") /> <cfset b = createObject("java", "java.util.HashMap") /> <cfset a.put("keyTwo", "valTwo") /> <cfset a.put("keyOne", "valOne") ... read more »
-
Does Order Of Twitter API Parameters Make A Difference?
Posted on Jan 30, 2009 at 12:03 PM
I'm throwing a hail mary here, but could it be that they're using some sort of hash for the requests you are sending as a key to throttle you and the order of the parameters results in a different hash?... read more »
-
A Serious CFThread Bug In ColdFusion?
Posted on Jan 22, 2009 at 10:16 AM
some more good reading: http://corfield.org/blog/index.cfm/do/blog.entry/entry/duplicate_is_bad_for_your_objects_health... read more »
-
A Serious CFThread Bug In ColdFusion?
Posted on Jan 22, 2009 at 9:55 AM
and what marc said... :)... read more »
-
A Serious CFThread Bug In ColdFusion?
Posted on Jan 22, 2009 at 9:54 AM
You know more about the internals then I do and I could be way off base here, but I wonder if the issue is related to the fact that CF uses duplicate() behind the scenes on your variables that you pass into cfthread. Try calling increment a few times before you kick off the threads and see what h... read more »
-
Ask Ben: Creating Single Location Logins
Posted on Jan 20, 2009 at 7:06 PM
Not related to the topic at all, but did you know that GMail will show you other active sessions and allow you to log them out? Logging in from a different place does not automatically log out the other session, you have to explicitly do it.... read more »
-
Listing All Classes In A Jar File Using ColdFusion And CFZip
Posted on Oct 3, 2008 at 9:38 AM
Right on. The fun part about using cfzip is that if you leave it as a query object you can use QofQ to do quick searches to find a specific class (or just snoop around). If I'm really bored I'll snoop around the internal CF Jar files using that method.... read more »
-
Listing All Classes In A Jar File Using ColdFusion
Posted on Oct 3, 2008 at 9:09 AM
How is this different then just listing the JAR out with cfzip?... read more »
-
Ask Ben: Instantiating Nested Java Classes In ColdFusion
Posted on Oct 1, 2008 at 10:35 AM
I didn't learn this trick until Mark Mandel showed it to me while I was at CFUnited this year (chatting him up on IM since he didn't make the trip). It is a huge life saver when you finally figure it out, and I had been meaning to blog it for a while now. Thanks for putting it out there for those ... read more »
-
What Happens When I Return The SUPER Scope From Component Constructor?
Posted on Sep 23, 2008 at 9:00 PM
Try returning SUPER without extending a manually created base. I'm guessing you'll get the base component that all CFC's extend, but I'm curious as to what you'll see... Probably nothing?... read more »
-
Using NULLIF() To Prevent Divide-By-Zero Errors In SQL
Posted on Oct 3, 2007 at 10:45 PM
Excellent find! Wish I would have known about this a long time ago - I've always just used a case statement: case when isNull(divisor, 0) = 0 then 0 else numerator/divisor end as value But this seems much nicer!... read more »
-
New ColdFusion Error: Form Entries Incomplete Or Invalid
Posted on Jun 12, 2007 at 10:15 AM
It's not "time" - it's "_time" Solution - use camelCase not underscores :)... read more »