Archive for the ‘ColdFusion’ Category

Thanks to Mike Henke, I found out you can chain assignment operators (“=”) in ColdFusion. An example of this would be: Resulting in: Behind the scenes it’s interpreted such as var1 = (var2 = (var3 = 123)); (It is right-associative, being the last assignment operation is evaluated first and propagated leftward. Also, don’t try that interpreted code [...]

Read XML from a HTTP POST

Posted: August 25, 2011 in ColdFusion

I program scripts to read XML posts just every once-and-awhile, and although very simple, every-time I forget how to do it. Let’s say that we receive a XML HTTP POST via this code: This is what you would use to read that POST: The key here is the GetHTTPRequestData().content. Notice how we do not use form.MyXML. Now [...]

Today I filed a bug with Adobe #2903404 - No file context menu in Team Synchronizing (right-click)  - Go vote for this bug if you have the same issue  – I was made aware by a co-worker of mine about the fact that you could not get a file context menu in ColdFusion Builder 2.0 while [...]

Lets say I have a select element that supports multiple selected values: I wish to return this information to my ColdFusion CFC that contains a remote method via AJAX: My CFC method looks like: This solution will error out due to the fact that the key “value” passed via AJAX is actually passed as “value[]“. [...]

Yesterday Adobe ColdFusion Builder 2 was released. With this includes the option to pay for a license ($109 upgrade / $299 full) or to use the express edition for free after your 60 full featured trial. Referencing a couple of matrix charts from Adobe here’s some key differences between ColdFusion Builder 1, ColdFusion Builder 2 [...]

While doing a little tinkering in my ColdFusion Builder 2 Beta I accidentally ran across some features while editing a ColdFusion file. These appear to be all new from version 1 and will be a great time-saver for me! Code hyperlinks for CFCs and UDFs Component names and UDFs are hyperlinked if you press Ctrl and hover [...]

I am currently using ColdFusion Builder 2 Beta for my primary projects. One item I noted was the lack of jQuery code assist. I did find a way to turn code assist on for jQuery 1.3. After some research I really haven’t found a way to include 1.4, 1.5 or 1.6RC. But 1.3 is better [...]

Word Wrap in ColdFusion Builder

Posted: April 14, 2011 in ColdFusion

I don’t know how many times I’ve had to lookup how to turn on word wrap in ColdFusion Builder. I’m guessing most people will only need to do this once, but I’m constantly messing around with new installations and alpha/beta releases. So mostly as a reference for myself, here’s how to turn on word wrap [...]

Microsoft SQL 2008 introduced the hierarchyid datatype helping with child/parent relationships. However this causes an issue if you try to select its data via ColdFusion’s Microsoft SQL Server driver. This breaks in ColdFusion 9.0.1 and I assume prior versions. Example Table: Example SQL Call: Now first of all you should try to avoid “SELECT *” [...]

Detect Mobile Browsers

Posted: March 17, 2011 in ColdFusion
Tags:

I’m still fairly new to the mobile platform programming and I’ve never been able to find a good way to detect if you’re coming via a mobile browser or a full browser – until now. Usually what I do is put this in my normal page headers and redirect them to a mobile directory if [...]