var how_many_rows = <cfoutput>#my_query.recordcount#</cfoutput>
does work
document.all.form_name.textbox1.value in your jscript part is read the same as #form.textbox1#
you can even use that to build dynamic jscript code
function foo(){
<cfif isDefined("the_name")>
... some code1 ...
<cfelse>
... some code 2 ...
</cfif>
}
view-source:your_file.cfm will show
if name is defined
function foo(){
... some code1 ...
}
but you can't use jscript values in cf code - except if you write a cf tag : cf is SERVER side whereas jscript is CLIENT side
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.