I need help with <cfajaximport>
# cfml-beginners
f
I need help with <cfajaximport>
a
Duly noted. Now what?
(NB: don't even know what it does, even having read the docs for it. So I won't be of any use here other than trying to tease-out a reasonable question that ppl might actually be able to answer...)
f
sorrty, I really don't lkoke how enter does't do new line automaqtically. Is thia only a probem wiht lucee?
fat fingers today!
a
hahahahah, WTF????
f
I really don't like how enter doesn't do new line automatically. Is this only a probem with lucee?
I'm trying to work on ray camden's blog aggregator, and he's using cfajaxiimport has an issue with tage=cfform . cfdocs doesn['t mention it
I think <cfajaximport> is necessary for the app, so I think removing the tags may destroy the layout
a
TBH, unless you have an actual reason to use all that UI shit in CFML... just don't
It's not good knowledge to have, and it's not the way any of this shit should be done these days
💯 3
(where "these days" pretty much includes "back when it first was added to CFML")
So if yer doing this for a learning exercise and that's the only reason: I recommend you just stop.
f
I know, but I like how easy the tags were
i'm trying to brush up on my cf, I already made a feed reader but i want to bring it to the next level
because Raymond is using scope in his app
Are you his brother or son?
d
Will second Adam's comment. Learning to use poorly designed code is not a good way to learn. Learn to use proper front end JavaScript instead.
2
✔️ 1
a
There are better things to brush up on in CFML than this. It is not a useful skill to have in the CFML world of 2022.
On the other hand... knowing how to do all that shiz using native JS, or a current clientside JS framework is... very useful.
Do not fall into the trap that way too many CFMLers do that their only tool is a hammer, so they need to pretend every problem is a nail. And they end up being a shit craftsperson.
s
@Formiko the cf ajax stuff may be easier to learn, but you will inevitably find that you need it to do something that the cf functionality doesn't support. Then you will find yourself having to hack crazy solutions together…. Then you'll install a CF update and all your hacks will break.
I speak from experience
🍺 1
Learning a client side js framework is the way to go
f
I know most of the frameworks, especially angular, but not react, js just pisses me off
s
likely the cfajax stuff will end up pissing you off even more
When CF8 came out, I built a whole system using those features, and I blogged about a lot of the customizations I had to do when I encountered various issues. (https://coldfusionguy.com/ColdFusion/blog/index.cfm/AJAX) ... then when CF9 came out and my whole system broke, I abandoned cfajax in favor of just using jQuery and Bootstrap.
👍 1