Binding
When it comes to programming, the two most commonly used features are CFAJAXProxy and binding. The binding feature allows us to bind or tie things together by using a simpler technique than we would otherwise have needed to create. Binding acts as a double-ended connector in some scenarios. You can set the bind to pull data from another ColdFusion tag on the form. The tags used with binding must be AJAX on both ends.
There are four forms of bindings with ColdFusion AJAX tags:
on-page
CFC
JavaScript
URL
Let's work through each style so that we will understand them well. We will start with on-page binding and then cover the other forms of binding available to ColdFusion AJAX tags.
On-page binding
We are going to bind cfdiv
to pull its content in order to show on-page binding. We will set the value of a text input to the div
. Refer to the following code. ColdFusion AJAX elements work in a manner different from how AJAX is written traditionally. It is more customary to name our browser-side...