Copy link to clipboard
Copied
Hi All -
I am trying to do the following:<script language="text/javascript">Copy link to clipboard
Copied
No, you can't pass JavaScript arguments to CFML within the same page. CFML executes on the server, generating text which is sent to the browser. Once that happens, the browser can execute any JavaScript within the text as appropriate.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Copy link to clipboard
Copied
As said in House of Fusion.
No, not at the same time.
ColdFusion executes on the server, and JavaScript executes on the client, never will the twain meet. They execute on completely different computers using completely different memory with completely different variables, running completely different code at completely different times.
There are plenty of ways to have javascript make requests to a ColdFusion server (i.e. AJAX) and it is trivial to have ColdFusion generate JavaScript to send to the browser. Just note that they are NOT working together.