Posted: October 31, 2007 at 11:46 AM by Ben Nadel
I was just reading over on CF-Talk that Shane Trahan was trying to split a binary file, write both parts to disk, and then later read them in and re-join them. I have never done anything like this, so I thought I would give it a try. At first, I was going to use a few ColdFusion arrays, but that didn't seem to work. For one, ColdFusion arrays ar... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 31, 2007 at 9:32 AM by Ben Nadel
... read more »
Comments (1) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 31, 2007 at 8:48 AM by Ben Nadel
Click here to view the current Online Demo Click here to view / download the current Code Base Last night, I finished Phase I of my Exercise List journey into understanding Object Oriented Programming (OOP) in ColdFusion. Phase I was the "proceedural" phase; it was building the application in a quick, standard, proceedural way that does ... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 29, 2007 at 3:56 PM by Ben Nadel
Reading though Learning jQuery by PACKT Publishing , I came across a good amount of really cool stuff. Their thorough, in-depth examples were really inspiring and got the machinery firing full blast. One of the cool things they did with jQuery that I would have never thought of doing in a million years was to create a transparent gradient over a ... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 29, 2007 at 8:03 AM by Ben Nadel
While reading the book, Learning jQuery , I came across a Javascript method that I had never heard of. The .toFixed() method, which can only be called on numeric values, will return a string representation of the number with the given number of decimal places. For example, if you wanted to return a dollar formatted version of a number, you coul... read more »
Comments (8) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 29, 2007 at 7:00 AM by Ben Nadel
While there are a lot of Javascript libraries out there, there's something special about jQuery. Right when you start to use it, it just feels right. Of course, trying to sell a manager or a co-worker on, "it just feels right", rarely works; it's important to be able to list out the reasons why something is good. Learning jQuery by PACKT Publis... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 26, 2007 at 2:45 PM by Ben Nadel
Click here to view the current Online Demo Click here to view / download the current Code Base Now that I have built a generic HTML template, I have taken that template and broken it out into a simple ColdFusion site skeleton. I am not using any framework here; I am really not putting in a lot of stuff. The only noticeable pattern is the... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 25, 2007 at 8:41 AM by Ben Nadel
Click here to view the current Online Demo Click here to view / download the current Code Base Now that I have my database schema down and a solid understanding of the site design, I have created a very basic page template. At first, I was going to create a comprehensive template that included form styles, but I decided that would be ove... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 24, 2007 at 1:23 PM by Ben Nadel
Since I have been getting into jQuery a lot lately, what with reading the books and playing around with code, I felt I should try a more complicated type of plug-in. As such, I have created this jQuery demo plug-in which creates sliding-image puzzles based on containers that have images. Running the demo page we get this output: ... read more »
Comments (12) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 23, 2007 at 6:36 PM by Ben Nadel
I am not sure if this is a bug, a gross misunderstanding on my part, or just a side effect of the architecture of the document object model (DOM), but from what I can tell, using jQuery's .empty() method seems to unbind any event handlers to child nodes, even when they have persistent pointers. To show you what I am talking about, take a look at t... read more »
Comments (6) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 23, 2007 at 2:03 PM by Ben Nadel
I ran into what I think is a jQuery bug this morning when testing to see if an image had finished loading. As you may or may not know, the image object has a boolean attribute, "complete", which determines whether or not the image has finished loading (either to success or failure/error). It seems, however, that this attribute can only be accessed... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 23, 2007 at 7:57 AM by Ben Nadel
Hi Ben, it's me again... I have a MYSQL 5.X question for you: I have two tables - Table A: pru_properties and Table B: mls_properties. They have the exact same columns names, but different content inside of them since they get feed by different companies. The only matching column is MLSID. how can I do a CFQUERY for both tables using a GROUP BY ML... read more »
Comments (6) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 22, 2007 at 7:00 AM by Ben Nadel
Now that we have our design / graphical prototype down on paper, we have a clear understanding of all the big-picture data points that are going to be required for this application. Taking that, we can flesh our our data schema. In the past, people have told me that when you approach an object oriented application, you don't think in terms of data... read more »
Comments (28) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 21, 2007 at 1:38 PM by Ben Nadel
I just finished reading the jQuery Reference Guide: A Comprehensive Exploration of the Popular JavaScript Library , by PACKT publishing , co-authored by Jonathan Chaffer and Karl Swedberg. This book is fantastic! It's a bit strange to review a reference manual because it's really just listing out all the features of the API. But, it's the way in... read more »
Comments (6) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 19, 2007 at 5:21 PM by Ben Nadel
I was reading up on jQuery last night and came across some cool jQuery predicate filtering in the selector statements. We have all seen the predicate for full attribute value matches: a[ @rel = 'nofollow' ] This would select all the links in the document object model that have a REL attribute value of "nofollow". In addition to the "=" compa... read more »
Comments (1) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink