Notice: With the launch of Adobe Cookbooks, this site will no longer be accepting new entries or posting new content. Thanks to everyone who submitted content!

JavaScript

This category covers ColdFusion and JavaScript interaction

Problems

How can I convert ColdFusion variables into JavaScript variables?
Use the toScript() function to create JavaScript variables from a ColdFusion variable. This function...

How can I share cookies between ColdFusion and JavaScript?
Sharing Cookies between ColdFusion and JavaScript is an easy way to pass data back and forth between...

How can I tell if a user has JavaScript enabled?
Because ColdFusion is a server side technology and JavaScript is a client side technology, you will ...

How can I use ColdFusion to work with JSON?
JSON stands for JavaScript Object Notation. You can think of it as a way to represent data (and type...

How do I make sure a string is safe to use with JavaScript?
If you are dynamically populating a JavaScript variable, you may find that your code breaks with "un...