How can I access a JavaScript variable in ColdFusion?
For example, if I set a variable var1 in JavaScript as follows,
<script language="javascript">
function f(temp)
{
var var1;
if temp == "Yes"
{
var1 = "Yes";
}
else if YesNo == "No"
{
var1 = "No";
}
}
</script>
In my ColdFusion code, how can I access the value of var1.
I am not able to use <cfset temp = var1> directly.
Thanks in anticipation.
For example, if I set a variable var1 in JavaScript as follows,
<script language="javascript">
function f(temp)
{
var var1;
if temp == "Yes"
{
var1 = "Yes";
}
else if YesNo == "No"
{
var1 = "No";
}
}
</script>
In my ColdFusion code, how can I access the value of var1.
I am not able to use <cfset temp = var1> directly.
Thanks in anticipation.