Don’t forget to tell us about your stack!
OS: macos tahoe 26.5.1
Java Version: jdk-26
Tomcat Version: ???
Lucee Version: 7.0.4.34
All was well on my old 2015 Macbook Pro (intel) then I migrated to a Macbook Air M5. I had to re-install Lucee but when I run my program I get the error " Tag [AjaxProxy] Not Supported. I use the to access a MySQL database on the client. Is there an extension which can restore this command and, if so, how do I implement it?
Searched around and found out that under Lucee Admin Server, I could install the Ajax Extension. I did so but when I run my program, it still gives the error " Tag [AjaxProxy] Not Supported. Is there something more I need to do?
AjaxProxy is wildly outdated. It was built to make it easy for CF developers to add Ajax features to coldfusion tags and forms and so forth. These days, it’s very easy to do that stuff and generally speaking devs are not relying on CFML to build that plumbing.
Thank you for the response. I understand that I’m using outdated code but I’d like to get my program working and then implement more modern code. So, back to my question, having installed the Ajax add-on, why is Lucee (I assume it’s not the browser) throwing up the error?
In the Lucee Admin you navigate to extensions, then look for : Ajax Extension
You need to install this. It works fine in lucee 7.
Something is wrong with your install, this is not a bug in lucee. See this repo for a verfied example of this working GitHub - kukielp/cfajaxproxy-on-lucee: Lucee 7 + Ajax Extension starter with a working cfajaxproxy demo, auto-installed via Docker · GitHub
Excellent! Thank you Paul.
Apologies while I show my ignorance but what I have in my program is:
<cfobject name="myComponent" component="progComponents">
<cfajaxproxy cfc="progComponents" jsclassname="proxytest">
I can see the extension in the place it should be.
If I’m following the example you pointed me toward correctly, what I have would seem to be ok and yet it is not.
OK, I admit I don’t fully understand the demo so I tried the following’
I created a file called tester.cfm which contains:
<cfajaxproxy cfc="Greeter" jsclassname="GreeterProxy">
<script type="test/javascript">
var proxy = new GreeterProxy();
proxy.setCallbackHandler(r => out.textContent = r);
proxy.hello("World");
</script>
and a file called Greeter.cfc containing:
component
{
remote string function hello( required string name ) returnformat=“plain”
{
return "Hello, " & arguments.name & "! — answered by Lucee " & server.lucee.version;
}
}
Then, in a browser, http://127.0.0.1:8888/tester.cfm and it errors with a syntax error, invalid construct for the setCallbackHandler statement.
Solved my problem by installing a version of Lucee before Alax was deleted from the package - 5.3.7.47.