I have a session variable defined in the application.cfm:
<cflock name="sLogin_Lock" timeout="30" type="exclusive" >
<cfset session.TreeView = 'true'>
</cflock>
In a subsequent .cfm I have a checkbox that has checked/value of the session variable.
<cfinput type="checkbox" name="treeShow" checked="#session.TreeView#"
value="#session.TreeView#" label="Show Applications Window"
onClick="#session.TreeView# = treeShow.selected;"/>
When clicked I want to set the session variable to be equal to treeShow.selected value, but this does not work and errors with "Left side of assignment operator must be variable or property"
I have tried a few variations of using # , etc....any assistance would be greatly appreciated.
<cflock name="sLogin_Lock" timeout="30" type="exclusive" >
<cfset session.TreeView = 'true'>
</cflock>
In a subsequent .cfm I have a checkbox that has checked/value of the session variable.
<cfinput type="checkbox" name="treeShow" checked="#session.TreeView#"
value="#session.TreeView#" label="Show Applications Window"
onClick="#session.TreeView# = treeShow.selected;"/>
When clicked I want to set the session variable to be equal to treeShow.selected value, but this does not work and errors with "Left side of assignment operator must be variable or property"
I have tried a few variations of using # , etc....any assistance would be greatly appreciated.