Dealing with ColdFusion Binds and JavaScripts

This post is more than 2 years old.

One of the cool things in ColdFusion 8 is how easy bindings are. You can tie a cfdiv, window, or other item to a form field and when the user changes it, the cfdiv will automatically note the change. This all happens with the magic of bindings. One problem you run into however is setting the form field via JavaScript. If you do this - you will notice the bindings don't fire like you would expect.

Rakshith, who works on the ColdFusion team for Adobe, has two articles on this subject I just discovered. (He asked me to add his blog to

The first blog entry, Fire the onchange event the browser independent way, describes how to fire events in general from JavaScript. The second, cfwindow url binding: bind on window source, shows an example with ColdFusion.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA