Recent Web Log Entries By Ben Nadel

Showing 1 - 15 of 16   < Prev | Next >

jQuery Data() Method Associates Data With DOM Elements - SWEET ASS SWEET!

Posted: November 20, 2008 at 10:19 AM by Ben Nadel

Tags: AJAX, Javascript / DHTML

I'm sorry that I cannot remember who posted this link, but yesterday on Twitter, someone posted a link to an article titled, " 5 Tips for Better jQuery Code ." It was a short article with HUGE bomb shell: the jQuery Data() method. I had never seen this jQuery method before, but apparently, it allows you to associate any type of data with a DOM ele... read more »

Comments (49)  |  Post Comment  |  Ask Ben  |  Permalink



Handling AJAX Errors With jQuery

Posted: November 7, 2008 at 8:57 AM by Ben Nadel

Tags: AJAX, Javascript / DHTML

jQuery is the most awesome javascript library that exists. Every day, I'm finding new ways to leverage it and shorter, more efficient ways to get things done. But, while most things are easy to do, the solution is not always immediately evident. One of the things that took me a good while to figure out was how to gracefully handle AJAX errors. Any... read more »

Comments (14)  |  Post Comment  |  Ask Ben  |  Permalink


ColdFusion, jQuery, And "AJAX" File Upload Demo

Posted: May 28, 2008 at 4:05 PM by Ben Nadel

Tags: AJAX, ColdFusion, Javascript / DHTML

As part of the project I am currently working on, I had to learn how to post files to the server using AJAX. I had never even attempted this before, so I was extra excited to learn something new. Of course, what you might learn quickly is that you cannot actually do this via "AJAX". Luckily, Rob Gonda warned me about this at the New York ColdFu... read more »

Comments (119)  |  Post Comment  |  Ask Ben  |  Permalink



Learning ColdFusion 8: Javascript Object Notation (JSON) Part III - AJAX Demo

Posted: June 9, 2007 at 4:28 PM by Ben Nadel

Tags: AJAX, ColdFusion

Thanks to ColdFusion 8's support of JSON, we can easily convert ColdFusion objects to and from JSON using SerializeJSON() and DeserializeJSON(). In conjunction with this explicit JSON serialization, ColdFusion 8 has also added the ability for remote access ColdFusion functions to return ColdFusion objects as JSON data when they are invoked as ... read more »

Comments (22)  |  Post Comment  |  Ask Ben  |  Permalink


My Shortie: Ray Camden's Beginner ColdFusion Contest (Monster Maker)

Posted: May 16, 2007 at 9:19 AM by Ben Nadel

Tags: AJAX, ColdFusion, HTML / CSS, Javascript / DHTML

Now that Ray Camden's Beginner ColdFusion Content has ended, I can discuss my unofficial entry. Seeing as I am not a beginner, I could not technically enter the contest, but I thought it would be a cool little project to have a go at, especially since I am not tremendously proficient with CFCs and object oriented programming (OOP). Before I get... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Permalink


My AJAX / ColdFusion Response Framework (er, um ...Methodology)

Posted: March 6, 2007 at 3:02 PM by Ben Nadel

Tags: AJAX, ColdFusion

I hesitate to call this a framework (as that seems to bring the pain from the Community). This is not really a framework, but rather a methodology that I am finding quite nice when developing a ColdFusion response to an AJAX request. I am sure stuff like this is all over the place, but in typical blood-and-guts fashion (any Dorian Yates fans out t... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink


JavaScript Does Not Escape "+" And ColdFusion Does Not Like This One Bit

Posted: March 6, 2007 at 8:13 AM by Ben Nadel

Tags: AJAX, ColdFusion, Javascript / DHTML

I have been working on a mini AJAX and ColdFusion powered Chat application so that I can help people debug their code in a real-time way. One bug that has popped up early on is that "+" symbols are getting lost. From what I narrowed down, the "+" is not even making it into the database. The error is on the way In, not the way Out. After some de... read more »

Comments (8)  |  Post Comment  |  Ask Ben  |  Permalink


JSON: Unterminated String Literal Error

Posted: March 2, 2007 at 7:21 AM by Ben Nadel

Tags: AJAX, ColdFusion, Javascript / DHTML

I was just fooling around with some JSON (JavaScript Object Notation) and kept this error whenever I tried to return a string value that contained line breaks: "unterminated string literal" I know what the error was (especially as FireFox's FireBug kicks sooo much butt with AJAX), but I couldn't understand how to get around it. Is it possible th... read more »

Comments (28)  |  Post Comment  |  Ask Ben  |  Permalink


AJAX Cool, Interface Hard

Posted: June 30, 2006 at 11:19 AM by Ben Nadel

Tags: AJAX, HTML / CSS

I am working on using some AJAX type stuff in my site's administration. The AJAX code itself is not that crazy or hard. For me, the hardest part is coming up with an interface that is AJAX-friendly, but is also consistent with the rest of my application. I want AJAX to be integrated seamlessly. I don't want someone (me) to go a page and have it be... read more »

Comments (1)  |  Post Comment  |  Ask Ben  |  Permalink


(CF)JSON - My Own ColdFusion Version For AJAX

Posted: June 27, 2006 at 8:42 AM by Ben Nadel

Tags: AJAX, ColdFusion

After going through CFJSON, I created my own version with my own coding standards and quirkiness. To point out some non-superficial changes, my version: Does not have any try-catch blocks. I don't get the point. I don't see where the code can really fail. I am only checking standard types that should have standard values. I can't see what would b... read more »

Comments (12)  |  Post Comment  |  Ask Ben  |  Permalink


JSON: Minor But VERY Important Detail Creating Syntax Error: Invalid Label

Posted: June 26, 2006 at 6:30 PM by Ben Nadel

Tags: AJAX, ColdFusion, Javascript / DHTML

I was beating my head against the wall today for a bit trying to figure out why some values coming back from my ColdFusion JSON-esque solution where not evaluation properly. I had the following code in my AJAX data handler: this.OnLoad( eval( this.Connection.responseText ); ); Damn thing was driving me crazy. Kept all kinds of errors like ... read more »

Comments (98)  |  Post Comment  |  Ask Ben  |  Permalink


Head Rush AJAX by O'Reilly

Posted: June 26, 2006 at 9:40 AM by Ben Nadel

Tags: AJAX, Books, Javascript / DHTML

All of my recent AJAX interest and motivation has been fueled by the O'Reilly book, Head Rush AJAX. Overall, the book was good for me. I am a huge fan of the Head First book series and I think for more of a beginner, the book would have been truly fantastic. It really goes in depth into AJAX and manipulation of a web page through the Document Obje... read more »

Comments (4)  |  Post Comment  |  Ask Ben  |  Permalink


Javascript Object Notation (JSON) Kinky-Style

Posted: June 26, 2006 at 9:32 AM by Ben Nadel

Tags: AJAX, ColdFusion, Javascript / DHTML

In an effort to learn AJAX and Javascript Object Notation (JSON), I am converting the CFJSON encoder into something that will fit into my architecture and standards; that's not meant to be snooty, I just have certain coding standards (such as capitalization and white-space utilization) that I like to follow. One of the things that I ended up cha... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink


Javascript Object Notation (JSON) Is What I Meant

Posted: June 26, 2006 at 7:28 AM by Ben Nadel

Tags: AJAX, ColdFusion, Javascript / DHTML

I have been of late learning about AJAX and its integration with a ColdFusion application. As I started to understand the whole Xml Http Connection object and methodology I started to develop a form of dynamic Javascript code that would be passed back from the ColdFusion server and then evaluated by the web browser at the end of the AJAX call. It ... read more »

Comments (8)  |  Post Comment  |  Ask Ben  |  Permalink


ColdFusion & AJAX: Converting ColdFusion Objects to Javascript Objects

Posted: June 23, 2006 at 8:06 AM by Ben Nadel

Tags: AJAX, ColdFusion, Javascript / DHTML

As I talked about earlier, I am starting to get into AJAX and, as a hands-on kind of guy, I do my best learning from building. So, now that I have my XmlHttpRequest wrapper, I have created some functions for the server side of things that convert ColdFusion objects into Javascript objects that are going to be passed back to the browser. If you re... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink

Showing 1 - 15 of 16   Pages: 1 2 < Prev | Next >

View All Blog Entries »

  • Help Wanted - Find Your Next ColdFusion Job
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 19, 2013 at 2:31 PM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
It's funny really just how well that image describes the way I would imagine most people that go with angular for some project is. I have had a similar roller-coaster ride with it as well, but not qu ... read »
May 17, 2013 at 7:42 PM
HashKeyCopier - An AngularJS Utility Class For Merging Cached And Live Data
Ben - thanks so much for posting these Angular articles and findings, they've been a huge help towards learning one of the more 'complex' JavaScript frameworks out there (IMO). I have been using Angu ... read »
May 16, 2013 at 5:01 PM
UPDATE: Parsing CSV Data Files In ColdFusion With csvToArray()
Your code was the closest thing I've found to obtaining some direction for converting ISO fields to values that CF can translate properly. Thank you for posting! ... read »
May 15, 2013 at 10:37 PM
Very Simple Pusher And ColdFusion Powered Chat
hi id making plz easy ... read »
May 15, 2013 at 6:07 PM
Making SOAP Web Service Requests With ColdFusion And CFHTTP
Ben, you once again saved my bacon at work. Thank you, thank you, thank you! ... read »
May 15, 2013 at 4:15 PM
What If All User Interface (UI) Data Came In Reports?
@Josh, Thanks! @Ben, I definitely recommend the David West book "Object Thinking" I've been quoting from. It goes deeply into the philosophy and history of OO programming. His breadth ... read »
May 15, 2013 at 11:36 AM
Ask Ben: Print Part Of A Web Page With jQuery
I found this helpfull when you need to keep (refresh) the original parent page after closing the iframe child print dialog (Hoping you're not using a form at this time so it won't submit again): On ... read »
May 14, 2013 at 7:13 PM
What If All User Interface (UI) Data Came In Reports?
@Jonah, If there's any books you'd recommend on the subject of domain modelling, I'd love to hear it. I just downloaded the free PDF of "Domain Driven Design Quickly". Figured I'd give it ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools