Hi All
I can't seem to find a definitive answer to this question so
can anyone
answer me. will the JavaScript written inside a
<cfscript> block still
run if the client has JavaScript disabled in their browser. I
guess I
mean. Will this JavaScript be run by the server or is it
still sent to
the browser??
TY
Bill
Your question begs a question, what do you mean by the
JavaScript
written inside a <cfscript> block?
Because, the CFML script that is used inside a
<cfscript> block IS NOT
JAVASCRIPT. YES, the CFML script will run, it is part of the
CF server
side stuff that builds the response that is returned to the
requesting
browser.
Now it is of course quite simple to use CFML script to
generate dynamic
JavaScript that is returned with the response to be run on
the client.
And, of course, this JavaScript will not run on browsers with
JavaScript
disabled.