I want to run a script when changing a cfselect list, and let the selected item
be a parameter assigned to a variable (her called enavdeling)
the code does not work. Can someone help me how to assign the depID to the
onedepartment parameter?
<cfselect name="department" width="160" query="list_department"
value="department" selected="depID"
onChange="getURL('changedepartment.cfm?onedepartment=department.selectedItem.dep
ID');" />
Tom
knalle - 17 May 2006 07:56 GMT
My question is wrong. (here called enavdeling) shall be (called onedepartment)
The problem is still there.
Tom
The ScareCrow - 18 May 2006 00:09 GMT
You were close
onChange="getURL('changedepartment.cfm?onedepartment=' + department.selectedItem.data);"
Ken
knalle - 18 May 2006 13:59 GMT
Thanks a lot for help. It work !.
I made a query t in the changedepartment.cfm-script to get the depID.
Is it so that "department.selectedItem.data" can only be assigned from
value="department".
Tom