Groups | Blog | Home
all groups > coldfusion flash integration > may 2006 >

coldfusion flash integration : cfselect and getURL with a parameter


knalle
5/17/2006 12:00:00 AM
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
5/17/2006 12:00:00 AM
My question is wrong. (here called enavdeling) shall be (called onedepartment)
The problem is still there.

The ScareCrow
5/17/2006 11:09:37 PM
You were close

onChange="getURL('changedepartment.cfm?onedepartment=' + department.selectedItem.data);"

Ken
knalle
5/18/2006 12:59:04 PM
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
AddThis Social Bookmark Button