Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Flash Integration / May 2006



Tip: Looking for answers? Try searching our database.

cfselect and getURL with a parameter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
knalle - 17 May 2006 07:42 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.