Recent Activity
Recent Heroes of the BenNadel.com Community
-
Posted 64 comments since December 11, 2008
-
Posted 270 comments since October 23, 2012
-
Posted 10 comments since December 11, 2008
-
Posted 16 comments since March 3, 2009
-
Posted 37 comments since December 11, 2008
-
Posted 9 comments since August 26, 2009
-
Posted 9 comments since April 29, 2011
-
Posted 6 comments since October 29, 2012
-
Posted 50 comments since January 15, 2014
-
Posted 4 comments since May 10, 2017
-
Posted 2 comments since February 7, 2020
-
Posted 5 comments since September 13, 2023
-
Posted 1 comment since May 14, 2025
Recent Comments
Tom K replied to a post Using CSS Utility Classes In CFDocument In ColdFusion
Comment posted May 31, 2025
@Ben We install it as part of our docker base image, then the app can just call via commandline (like wkhtmlpdf etc). It means you have to install some dependencies to get it working (especially from say an Alpine image) but we haven't needed to spin it out into it's own service yet. I just go so si... read entire comment from Tom K.
Ben Nadel replied to a post Using CSS Utility Classes In CFDocument In ColdFusion
Comment posted May 31, 2025
@Ken, 100% When ColdFusion introduces the Image generation and the PDF generation, it was like, "dang, this stuff is unreal!" I've been playing around a lot with HTMX lately to try and return to more of that traditional (ie, "old school") approach to web development. We'll see how far I go - it's a ... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using CSS Utility Classes In CFDocument In ColdFusion
Comment posted May 31, 2025
@Tom, Wow, I've never heard of WeasyPrint before; but, it looks really robust. And it seems like it's had a ton of work and support put into it - seems they even have it available as Docker images and AWS Lambda functions. How are you running it on your end? What kind of set up do you have?... read entire comment from Ben Nadel.
Ken Auenson replied to a post Using CSS Utility Classes In CFDocument In ColdFusion
Comment posted May 31, 2025
Thanks as always for sharing your deep dive with us! Making cfdocument PDFs always makes me feel a nostalgia for the old days of web dev!... read entire comment from Ken Auenson.
Tom K replied to a post Using CSS Utility Classes In CFDocument In ColdFusion
Comment posted May 31, 2025
This is why I moved to weasyprint; it has css3 support!... read entire comment from Tom K.
Ray V replied to a post Rendering 1-Dimensional Barcodes With Zxing And ColdFusion
Comment posted May 31, 2025
Generating barcodes caught my eye. I'm in a similar boat. 😅 Here's 2 extra resources I had bookmarked: dev.Lucee.org posting Lucee QR Code generator by Webonix As always thanks for the selfless act of kindness!... read entire comment from Ray V.
Marc replied to a post Creating An hx-event Extension For Triggering Events In HTMX
Comment posted May 30, 2025
I've gone full bore into using HTMX with CF. I find using HTMX just makes sense and gives me exactly the amount of functionality I need. If you haven't already, take a look at hyperscript (hyperscript.org). I find it to be a wonderful tool for dealing with events and it comes from the same world as ... read entire comment from Marc.
Chris G replied to a post Hypermedia Systems By Carson Gross
Comment posted May 20, 2025
@Ben Nadel, Nice! My guess is that the idea of prefixes and suffixes is more to align with the CFW way of doing things. The form helpers are a prime example of this with all their prependToLabel etc. IDK. But as they say...there's more than one way to skin a cat. That's actually a pretty terrible sa... read entire comment from Chris G.
Ben Nadel replied to a post Hypermedia Systems By Carson Gross
Comment posted May 20, 2025
@Chris, I took the concept and just tweaked it a little bit. I created a function called: <hOne> #withHeadTitle( "Details", user.name )# </hOne> (using "hOne" cause my spam filter is blocking the h1 for some reason). The first argument then gets echoed out, but the 2nd and 3rd optional arguments w... read entire comment from Ben Nadel.
Chris G replied to a post Hypermedia Systems By Carson Gross
Comment posted May 19, 2025
@Ben Nadel, Ha! I've forgotten about that. I actually cannot take any credit for the approach. All I did was take Grant Copley's YM_Headliner, written for CFW 1.x and updated it to work with 2.x But I agree and what I love most about it is that I can use it as my H1 tag as well as my TITLE tag, maki... read entire comment from Chris G.
Ben Nadel replied to a post Hypermedia Systems By Carson Gross
Comment posted May 19, 2025
@Chris, I just came across a CFWheels plug-in that you wrote: https://github.com/geirman/cfwheels-titletag-plugin I really like this approach. This is something (setting a title) that I've never felt like I had a nice approach for. I've generally been doing something like: // Local value for templat... read entire comment from Ben Nadel.
Brian replied to a post Dynamically Enabling / Disabling Session Management In Lucee CFML 5.3.8.201
Comment posted May 17, 2025
We just tried updating to CF2021 U20 (on Winder Server, from CF2021 U19), and ran into a weird issue where our application.cfc page is throwing an error stating: Enable SessionManagement to use Session manipulation methods. The component definitely has this line near the top, as it always has: this.... read entire comment from Brian.
Ben Nadel replied to a post HTMX Extensions Have Access To An Extended API
Comment posted May 16, 2025
@Peter, That's a really interesting idea. I think it's the general premise behind the Datastar framework (which is inspired by the HTMX framework). I know very little about Datastar, but I think it's all driven by Server-Sent Events (SSE) and OOB swaps. If you squint hard enough, SSE is kind of like... read entire comment from Ben Nadel.
Peter replied to a post HTMX Extensions Have Access To An Extended API
Comment posted May 14, 2025
Keep the HTMX Series going. I'd like to see your thoughts on HTMX and Pusher WebSocket. Ether as an extension of shim JavaScript code. I'd like to send template fragments down the WebSocket wire and have the fragment processed like it was "SWAP-OOB". I'm not sure Htmx is setup for that behavior, and... read entire comment from Peter.
Eric Searing replied to a post Collocating My ColdFusion, CSS, And JavaScript Files
Comment posted May 14, 2025
In my Work application we work in various directories with hundreds of pages\reports\tools that need a congruent look. My coding style is more CF2012 but it still works and allows separation of function vs style. My app is also reading from and writing to databases so there is a ton of nested SQL th... read entire comment from Eric Searing.
Ben Nadel replied to a post What Happens When You Mutate The DOM Outside Of HTMX
Comment posted May 12, 2025
@Mike, Very cool! 🙌 I'm glad someone else is finding this stuff interesting. HTMX feels like it has a lot of potential. Right now, I'm trying to wrap my head around modal window / fly-out kind of stuff. I think that will be the biggest hurdle both mentally and technically. But, for the most part, a... read entire comment from Ben Nadel.
Ben Nadel replied to a post Exploring Extensions In HTMX
Comment posted May 12, 2025
So, it turns out that when the init() method is called, it's passed a reference to an API. At first, I thought this was just a convenience reference to the public api; but, this is not the case. The init() argument exposes a more extensive, qausi-private API for extension authors: https://www.bennad... read entire comment from Ben Nadel.
Mike Peters replied to a post What Happens When You Mutate The DOM Outside Of HTMX
Comment posted May 11, 2025
Hi Ben, I love your voyage of discovery by experimentation with HTMX. I am learning how to do this from you. I have created an index of your articles here to help me keep track of lessons learned. https://www.blog.ajabbi.com/2025/05/ben-nadel-on-htmx.html Thanks and don't stop 😀😀😀 Mike Peters New... read entire comment from Mike Peters.
Ben Nadel replied to a post Using Alpine.js In HTMX
Comment posted May 10, 2025
A quick follow-up to look at things from other perspective: mutating the DOM outside of the HTMX life-cycle; and then seeing if HTMX knows about it: https://www.bennadel.com/blog/4799-what-happens-when-you-mutate-the-dom-outside-of-htmx.htm tl;dr, htmx does not. You have to be careful when mutating ... read entire comment from Ben Nadel.
Ben Nadel replied to a post Sanity Check For Reassigning Method Arguments In ColdFusion
Comment posted May 9, 2025
I filed bug CF-4226518 in the Adobe Bug Tracker for the fact that you can't use the Elvis operator in a default argument assignment expression (without the intermediary method call).... read entire comment from Ben Nadel.
Ben Nadel replied to a post Sanity Check For Reassigning Method Arguments In ColdFusion
Comment posted May 9, 2025
After posting this, I did one more sanity check with the Adobe ColdFusion code. While this argument signature throws an error: method( string value = ( this.value ?: "" ) ) ... this argument signature works: method( string value = echoValue( this.value ?: "" ) ) In this case, let's assume that echoV... read entire comment from Ben Nadel.
Ben Nadel replied to a post Core String Functions Will Accept Null / Undefined Values In ColdFusion
Comment posted May 7, 2025
@Will, Yeah, the hash() one struck me as strange too on the Lucee side. I wonder if it's converting to an empty string; or maybe the string literal null. I'll see if I can sus-out which thing it's doing. re: side-project stuff, I'm the opposite - Lucee at work, ACF in personal life. That's primarily... read entire comment from Ben Nadel.
Will Belden replied to a post Core String Functions Will Accept Null / Undefined Values In ColdFusion
Comment posted May 7, 2025
While I like most of it (variables?.undefined) I can't say I'm a fan of hash() returning a value. I can see potential issues there. I think CF gets it "more better" here. It was funny, I immediately said "noooooo" as I was scrolling to change to "ah, that's better" seeing the CF result. For me, it's... read entire comment from Will Belden.
Ben Nadel replied to a post Core Decision Functions Will Accept Null / Undefined Values In ColdFusion
Comment posted May 7, 2025
As a follow-up, it turns out that you can pass null / undefined values to most of the string oriented functions in ColdFusion: https://www.bennadel.com/blog/4795-core-string-functions-will-accept-null-undefined-values-in-coldfusion.htm This will be particularly helpful for the methods len(), and val... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using :scope To Identify The Host Element In .querySelectorAll()
Comment posted May 6, 2025
@Hugh, I love the idea of the short-hand methods. This is one of my biggest sentimental misses from the jQuery days. It's just hard to ever feel like anything is easier / better than $() 😄 Even in HTMX - the framework that I'm learning right now - has it's own htmx.find() method internally, that do... read entire comment from Ben Nadel.
Hugh replied to a post Using :scope To Identify The Host Element In .querySelectorAll()
Comment posted May 6, 2025
I've really enjoyed using querySelector and querySelectorAll. I got tired of typing out though so I typically create a function to handle the calls: const qs = (obj, container = document)=> container.querySelector( obj ) const qsa = (obj, container = document)=> container.querySelectorAll( obj ) //... read entire comment from Hugh.
Ben Nadel replied to a post Exploring Extensions In HTMX
Comment posted May 3, 2025
As a quick follow-up, here's another post exploring an HTMX extension that binds keyboard shortcuts to links: https://www.bennadel.com/blog/4793-keyboard-command-extension-in-htmx-and-coldfusion.htm... read entire comment from Ben Nadel.
Ben Nadel replied to a post Exploring Extensions In HTMX
Comment posted May 2, 2025
One point of clarity on which nodes get processed. While the extension can help HTMX identify which nodes are processed during the initialization of a DOM branch, all elements that get removed from the DOM (by HTMX) are "de-initialized." Which means that every element that HTMX removes receives, at ... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using :scope To Identify The Host Element In .querySelectorAll()
Comment posted April 29, 2025
@Chris, CSS is indeed pretty power, when it does what you want 😜... read entire comment from Ben Nadel.
Chris G replied to a post Using :scope To Identify The Host Element In .querySelectorAll()
Comment posted April 29, 2025
So cool. CSS is pure magic 🪄✨... read entire comment from Chris G.
Peter replied to a post Using hx-preserve To Persist Elements Across Swaps In HTMX
Comment posted April 28, 2025
Ben, I've been enjoying your HTMX content. I look forward to have a few moments to digest your thought process and integrate it into my thinking with HTMX. Keep it up! I'd be interested in seeing some content on SSE with HTMX or WebSocket's. Pusher App in particulate. I've playing the the HTMX JavaS... read entire comment from Peter.
Ben Nadel replied to a post Fetch API Will Propagate Non-POST Methods Upon Redirect
Comment posted April 28, 2025
I'm all for it! Thanks for your continuous efforts to improve the platform. You are synonymous with the Lucee ecosystem!... read entire comment from Ben Nadel.
Zachary Spitzer replied to a post Fetch API Will Propagate Non-POST Methods Upon Redirect
Comment posted April 28, 2025
@Ben Nadel my working approach is, if I'm as an expert, initially confused somewhat by something in Lucee, it's a potentially a bug. thanks for raising it, nothing beats a nice concise example like you shared, continuous improvement FTW https://dev.lucee.org/t/cfhttp-only-returns-filecontent-for-get... read entire comment from Zachary Spitzer.
Ben Nadel replied to a post Fetch API Will Propagate Non-POST Methods Upon Redirect
Comment posted April 28, 2025
Ahh, then I like! :D Especially if it's an easy change. If this required a lot of work, I am not sure if it would be worthwhile.... read entire comment from Ben Nadel.
Zachary Spitzer replied to a post Fetch API Will Propagate Non-POST Methods Upon Redirect
Comment posted April 27, 2025
@Ben Nadel, when lax cfhttp will follow the redirects and return the final HTML contents, rather than object moved... read entire comment from Zachary Spitzer.
Ben Nadel replied to a post Fetch API Will Propagate Non-POST Methods Upon Redirect
Comment posted April 26, 2025
@Zac, I don't fully understand, but I'm glad I could inspire 😆... read entire comment from Ben Nadel.
Zachary Spitzer replied to a post Fetch API Will Propagate Non-POST Methods Upon Redirect
Comment posted April 26, 2025
You inspired me to add support for <cfhttp redirect="lax"> to Lucee 7.0.0.208 https://luceeserver.atlassian.net/browse/LDEV-5542 which returns file content for GET, POST and DELETE... read entire comment from Zachary Spitzer.
Ben Nadel replied to a post Sanity Checking HTTP Method Used After Location() Call In ColdFusion
Comment posted April 26, 2025
A quick follow-up. I was listening to the Remote Ruby podcast yesterday and on it the hosts also mentioned the HTTP method propagation on redirects, but specifically for the fetch() API. So, I wanted to go back and do another sanity check for fetch. And it turns out that the fetch() API will propaga... read entire comment from Ben Nadel.
Ben Nadel replied to a post Comparing Undefined Values With Optional Chaining In JavaScript
Comment posted April 17, 2025
100% it's just satisfying to feel like I'm always building a better understanding of the fundamentals.... read entire comment from Ben Nadel.
Vikrant Shitole replied to a post Comparing Undefined Values With Optional Chaining In JavaScript
Comment posted April 17, 2025
JS always has surprises! Glad this helped simplify your code, those little discoveries are the best.... read entire comment from Vikrant Shitole.
Mike Peters replied to a post ColdFusion And HTMX Contact App
Comment posted April 15, 2025
Ben, I love the experimentation to see what works best with HTMX. I used HTMX in a "Ribbon" UI Component. It seemed to work oK, but I'm still learning. I have been using a home-built CF-driven static page generator that uses a database for the source since 2004. The biggest science reference website... read entire comment from Mike Peters.
Ben Nadel replied to a post ColdFusion And HTMX Contact App
Comment posted April 15, 2025
@Bill, I tend to agree. I would prefer in-memory caching (in ColdFusion) before I'd worry about static content generation if performance is a major concern. One of the magical things about ColdFusion is how so much of it "just works": you create a CFM file, you deploy it, and viola - you have a dyna... read entire comment from Ben Nadel.
Ben Nadel replied to a post ColdFusion And HTMX Contact App
Comment posted April 15, 2025
@Mike, I 100% feel your pain about reducing brittle UI. You're talking to someone who worked on a massive AngularJS application, only to see it end-of-life'd (AngularJS) leaving my application living on a non-maintained framework. One of the things that I like about HTMX and other frameworks in this... read entire comment from Ben Nadel.
Ben Nadel replied to a post ColdFusion And HTMX Contact App
Comment posted April 15, 2025
@Chris, These are all great questions! And, to be honest, I don't have great answers for any of them :P Is this all necessary? It's so hard to say. Since this is already skewing more towards a traditional request-response, multi-page application architecture, and leans heavily on the ideas of "progr... read entire comment from Ben Nadel.
Bill Nourse replied to a post ColdFusion And HTMX Contact App
Comment posted April 15, 2025
Hey Ben, Boy, that was a deep dive on HTMX, thanks for sharing. For me, I look at HTMX as a principle, rather than a Javascript library. It's knowing you can do things like dom changes, active search, and submitting form data simply using bits of vanilla Javascript. All without shipping tons of JS, ... read entire comment from Bill Nourse.
Bill Nourse replied to a post HTTP GET And HTTP POST Are Sufficient (For Me) In ColdFusion
Comment posted April 15, 2025
Hey Ben, Yep, HTML only support GET and POST, and probably always will, and I do understand where you are coming from. I also love your point about keeping things simple, I am a huge proponent and wish others would do the same. So yeah, you could write any app with only those two methods. No issue t... read entire comment from Bill Nourse.
Mike Peters replied to a post ColdFusion And HTMX Contact App
Comment posted April 14, 2025
Hypermedia Systems is an excellent book, Ben. The problem I am trying to solve is reducing brittle UI with dependencies on others and constant changes to libraries for large enterprise systems. The plan. Use a CF static file generator to render 90% of pages as static HTML, including parts of dynamic... read entire comment from Mike Peters.
Chris G replied to a post ColdFusion And HTMX Contact App
Comment posted April 14, 2025
I love that you're delving into htmx as I've always been curious about it but haven't (yet) taken the time to do a deep dive myself. I'm not (yet) convinced I need it to be honest. It may be a solution looking for a problem, but I'm open (and interested) to learn along with you. When you delete the ... read entire comment from Chris G.
Ben Nadel replied to a post ColdFusion And HTMX Contact App
Comment posted April 14, 2025
@Mike, If you haven't, you should take a look at the Hypermedia Systems book. You can read it for free online (or purchase a physical copy): https://hypermedia.systems/ It really walks through the mindset in a helpful way. I'm still very much just getting my feet wet here; there's a lot to think abo... read entire comment from Ben Nadel.
Mike Peters replied to a post ColdFusion And HTMX Contact App
Comment posted April 14, 2025
Hi Ben, Thanks for a great article about using HTMX. I am attempting to do the same in a SaaS I'm building. I like the idea of using the DOM to do a lot of simple work.... read entire comment from Mike Peters.