there is no "proper way" to "call javascript from
coldfusion": cf runs
on the server and is totally oblivious to your client-side
javascript.
how you write and call your js functions depends solely on
the purpose
of the function and where (which html element in your page or
which
other js function) it is called from.
just one thing to keep in mind if you are using cf8 ajax
features:
declare your in-page js functions as functionname =
function() [instead
of function functionname()], or use external js scripts and
declare them
any way you want.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/