redherring917
Programmer
Within a popup window, I want to use CFSET to set a ColdFusion variable to the value of a form field found in the opener window. The following grabs the value of the form field - a string - just fine and successfully stuffs it into the variable "checkbox_valueM", but I can't for the life of me come up with the correct syntax to set a ColdFusion variable to this value using CFSET. This iteration of my attempts returns the error "The value "" cannot be converted to a number".
<cfset selectedproducts_M = "">
<SCRIPT LANGUAGE="JavaScript">
<!--
var checkbox_valueM = "";
var checkbox_valueM = (window.opener.document.productsearch.selectedproducts_M.value);
<cfset selectedproducts_M = selectedproducts_M + checkbox_valueM>
// -->
</script>
I am humbled. Any help would be greatly appreciated.
Thanks.
<cfset selectedproducts_M = "">
<SCRIPT LANGUAGE="JavaScript">
<!--
var checkbox_valueM = "";
var checkbox_valueM = (window.opener.document.productsearch.selectedproducts_M.value);
<cfset selectedproducts_M = selectedproducts_M + checkbox_valueM>
// -->
</script>
I am humbled. Any help would be greatly appreciated.
Thanks.